Skip to content

Commit efed283

Browse files
[release-branch.go1.17] runtime: call testenv.MustHaveCGO in a couple of tests
For #51695 Fixes #51696 Change-Id: Icfe9d26ecc28a7db9040d50d4661cf9e8245471e Reviewed-on: https://go-review.googlesource.com/c/go/+/392916 Trust: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]> (cherry picked from commit 2d32594) Reviewed-on: https://go-review.googlesource.com/c/go/+/393698 Reviewed-by: Emmanuel Odeke <[email protected]>
1 parent 88be85f commit efed283

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/signal_windows_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestVectoredHandlerDontCrashOnLibrary(t *testing.T) {
2525
t.Skip("this test can only run on windows/amd64")
2626
}
2727
testenv.MustHaveGoBuild(t)
28+
testenv.MustHaveCGO(t)
2829
testenv.MustHaveExecPath(t, "gcc")
2930
testprog.Lock()
3031
defer testprog.Unlock()
@@ -149,6 +150,7 @@ func TestLibraryCtrlHandler(t *testing.T) {
149150
t.Skip("this test can only run on windows/amd64")
150151
}
151152
testenv.MustHaveGoBuild(t)
153+
testenv.MustHaveCGO(t)
152154
testenv.MustHaveExecPath(t, "gcc")
153155
testprog.Lock()
154156
defer testprog.Unlock()

0 commit comments

Comments
 (0)