Skip the windows ASLR test when CGO_ENABLED=0

This commit is contained in:
hao 2021-05-12 16:58:10 +08:00 committed by GitHub
parent 1a0ea1a08b
commit 465d60e019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ func TestWindowsBuildmodeCSharedASLR(t *testing.T) {
t.Skip("skipping windows amd64/386 only test")
}
// make sure cgo enable
testenv.MustHaveCGO(t)
t.Run("aslr", func(t *testing.T) {
testWindowsBuildmodeCSharedASLR(t, true)
})