diff options
| author | Than McIntosh <thanm@google.com> | 2022-09-26 20:52:09 -0400 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2022-09-27 13:46:23 +0000 |
| commit | 550864e5d20d6d3507aae7d2797f84140963d555 (patch) | |
| tree | 5371af5993dd440a009fe8ada252c86003f41efb /src/runtime/testdata | |
| parent | f6e1677428e3df28e936cb000b58fca377f67d72 (diff) | |
| download | go-550864e5d20d6d3507aae7d2797f84140963d555.tar.xz | |
runtime: add cgo guard for exit hooks test
Add an additional guard to ensure that we don't try to run the "-race"
variant of the exit hooks test when CGO is explicitly turned off via
CGO_ENABLED=0 (this fixes a failure on the no-cgo builder caused
by CL 354790).
Change-Id: I9dc7fbd71962e9a098916da69d9119a753f27116
Reviewed-on: https://go-review.googlesource.com/c/go/+/434935
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testexithooks/testexithooks.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/testdata/testexithooks/testexithooks.go b/src/runtime/testdata/testexithooks/testexithooks.go index 57561faf8e..ceb3326c4f 100644 --- a/src/runtime/testdata/testexithooks/testexithooks.go +++ b/src/runtime/testdata/testexithooks/testexithooks.go @@ -10,8 +10,6 @@ import ( _ "unsafe" ) -import "C" - var modeflag = flag.String("mode", "", "mode to run in") func main() { |
