mirror of
https://github.com/golang/go
synced 2024-11-11 18:31:38 -07:00
runtime: call testenv.MustHaveCGO in a couple of tests
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>
This commit is contained in:
parent
3d7392a08f
commit
2d32594396
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user