aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-03-15 21:05:11 -0700
committerIan Lance Taylor <iant@golang.org>2022-03-28 16:54:53 +0000
commit677c6fe94c69b4fa35503e4afd36e8ef0e1394c5 (patch)
treec677ee1f059caa2c8b5ffba63ad8abf16afccc5b
parent4aa1efed4853ea067d665a952eee77c52faac774 (diff)
downloadgo-677c6fe94c69b4fa35503e4afd36e8ef0e1394c5.tar.gz
go-677c6fe94c69b4fa35503e4afd36e8ef0e1394c5.zip
[release-branch.go1.18] runtime: call testenv.MustHaveCGO in a couple of tests
For #51695 Fixes #51697 Change-Id: Icfe9d26ecc28a7db9040d50d4661cf9e8245471e Reviewed-on: https://go-review.googlesource.com/c/go/+/392916 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> (cherry picked from commit 2d32594396b231b39d09ec21d34b22b0270268b5) Reviewed-on: https://go-review.googlesource.com/c/go/+/393699 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
-rw-r--r--src/runtime/signal_windows_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/signal_windows_test.go b/src/runtime/signal_windows_test.go
index 7c88ab573e..ebe94797fb 100644
--- a/src/runtime/signal_windows_test.go
+++ b/src/runtime/signal_windows_test.go
@@ -24,6 +24,7 @@ func TestVectoredHandlerDontCrashOnLibrary(t *testing.T) {
t.Skip("this test can only run on windows/amd64")
}
testenv.MustHaveGoBuild(t)
+ testenv.MustHaveCGO(t)
testenv.MustHaveExecPath(t, "gcc")
testprog.Lock()
defer testprog.Unlock()
@@ -148,6 +149,7 @@ func TestLibraryCtrlHandler(t *testing.T) {
t.Skip("this test can only run on windows/amd64")
}
testenv.MustHaveGoBuild(t)
+ testenv.MustHaveCGO(t)
testenv.MustHaveExecPath(t, "gcc")
testprog.Lock()
defer testprog.Unlock()