From 550864e5d20d6d3507aae7d2797f84140963d555 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Mon, 26 Sep 2022 20:52:09 -0400 Subject: 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 Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot --- src/runtime/testdata/testexithooks/testexithooks.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/runtime/testdata') 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() { -- cgit v1.3-5-g9baa