From: Ian Lance Taylor Date: Wed, 16 Mar 2022 04:05:11 +0000 (-0700) Subject: [release-branch.go1.18] runtime: call testenv.MustHaveCGO in a couple of tests X-Git-Tag: go1.18.1~22 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=677c6fe94c69b4fa35503e4afd36e8ef0e1394c5;p=gostls13.git [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 Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills (cherry picked from commit 2d32594396b231b39d09ec21d34b22b0270268b5) Reviewed-on: https://go-review.googlesource.com/c/go/+/393699 Reviewed-by: Emmanuel Odeke --- 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()