]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: call testenv.MustHaveCGO in a couple of tests
authorIan Lance Taylor <iant@golang.org>
Wed, 16 Mar 2022 04:05:11 +0000 (21:05 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 18 Mar 2022 00:49:08 +0000 (00:49 +0000)
Fixes #51695

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>
src/runtime/signal_windows_test.go

index 7c88ab573eab2ad033a5d087f2736e30b4664e2a..ebe94797fb4503cff1596645350893fdea18dd63 100644 (file)
@@ -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()