mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
fix garble with newer Go tip versions
Some big changes landed in Go for the upcoming 1.20. While here, remove the use of GOGC=off with make.bash, as https://go.dev/cl/436235 makes that unnecessary now.
This commit is contained in:
10
testdata/script/reverse.txtar
vendored
10
testdata/script/reverse.txtar
vendored
@@ -30,7 +30,8 @@ cp stderr build-error.stderr
|
||||
|
||||
stdin build-error.stderr
|
||||
garble reverse ./build-error
|
||||
cmp stdout build-error-reverse.stdout
|
||||
[!go1.20] cmp stdout build-error-reverse.stdout-go1.19
|
||||
[go1.20] cmp stdout build-error-reverse.stdout-go1.20
|
||||
|
||||
[short] stop # no need to verify this with -short
|
||||
|
||||
@@ -158,8 +159,13 @@ main.main(...)
|
||||
test/main/long_main.go:11 +0x??
|
||||
|
||||
main filename: test/main/long_main.go
|
||||
-- build-error-reverse.stdout --
|
||||
-- build-error-reverse.stdout-go1.19 --
|
||||
# test/main/build-error
|
||||
test/main/build-error/error.go:18: cannot convert UnobfuscatedStruct{} (value of type UnobfuscatedStruct) to type struct{SomeField int}
|
||||
exit status 2
|
||||
exit status 2
|
||||
-- build-error-reverse.stdout-go1.20 --
|
||||
go build test/main/build-error: # test/main/build-error
|
||||
test/main/build-error/error.go:18: cannot convert UnobfuscatedStruct{} (value of type UnobfuscatedStruct) to type struct{SomeField int}
|
||||
exit status 2
|
||||
exit status 1
|
||||
|
||||
Reference in New Issue
Block a user