mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
[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 <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/+/393698 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
This commit is contained in:
parent
88be85f18b
commit
efed283e79
@ -25,6 +25,7 @@ func TestVectoredHandlerDontCrashOnLibrary(t *testing.T) {
|
|||||||
t.Skip("this test can only run on windows/amd64")
|
t.Skip("this test can only run on windows/amd64")
|
||||||
}
|
}
|
||||||
testenv.MustHaveGoBuild(t)
|
testenv.MustHaveGoBuild(t)
|
||||||
|
testenv.MustHaveCGO(t)
|
||||||
testenv.MustHaveExecPath(t, "gcc")
|
testenv.MustHaveExecPath(t, "gcc")
|
||||||
testprog.Lock()
|
testprog.Lock()
|
||||||
defer testprog.Unlock()
|
defer testprog.Unlock()
|
||||||
@ -149,6 +150,7 @@ func TestLibraryCtrlHandler(t *testing.T) {
|
|||||||
t.Skip("this test can only run on windows/amd64")
|
t.Skip("this test can only run on windows/amd64")
|
||||||
}
|
}
|
||||||
testenv.MustHaveGoBuild(t)
|
testenv.MustHaveGoBuild(t)
|
||||||
|
testenv.MustHaveCGO(t)
|
||||||
testenv.MustHaveExecPath(t, "gcc")
|
testenv.MustHaveExecPath(t, "gcc")
|
||||||
testprog.Lock()
|
testprog.Lock()
|
||||||
defer testprog.Unlock()
|
defer testprog.Unlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user