]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/test: set the traceback level instead of failing the test
authorBryan C. Mills <bcmills@google.com>
Tue, 12 Sep 2017 20:45:26 +0000 (16:45 -0400)
committerBryan Mills <bcmills@google.com>
Wed, 13 Sep 2017 02:53:11 +0000 (02:53 +0000)
commit9f1a7192dc574b47f8fae81c16796f808806f032
tree89541399d47c1fd7a0dc5956eb20aa49a429702e
parentbc8bb5b27a5abe48fbfc79ae4a1ce4c87ca90bbc
misc/cgo/test: set the traceback level instead of failing the test

Previously, test7978 failed if the user did not invoke it with
GOTRACEBACK=2 already set in their environment. Environment-sensitive
test are awkward, and in this case there is a very simple workaround:
set the traceback level to the necessary value explicitly.

Change-Id: I7d576f24138aa8a41392148eae11bbeaef558573
Reviewed-on: https://go-review.googlesource.com/63275
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/test/issue7978.go
src/cmd/dist/test.go