]> Cypherpunks repositories - gostls13.git/commit
runtime: add cgo guard for exit hooks test
authorThan McIntosh <thanm@google.com>
Tue, 27 Sep 2022 00:52:09 +0000 (20:52 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 27 Sep 2022 13:46:23 +0000 (13:46 +0000)
commit550864e5d20d6d3507aae7d2797f84140963d555
tree5371af5993dd440a009fe8ada252c86003f41efb
parentf6e1677428e3df28e936cb000b58fca377f67d72
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>
src/runtime/ehooks_test.go
src/runtime/testdata/testexithooks/testexithooks.go