diff options
author | hao <tfzxyinhao@qq.com> | 2021-05-28 03:40:12 +0000 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-06-28 16:42:42 +0000 |
commit | 901510ed4ef1a979321f33159b534e374290ef65 (patch) | |
tree | 8b49a38dbf59c4d4b1b6d9259db374928d18e232 /src/cmd/link | |
parent | 361159c05507b7f6c28e29575c02a6b7b6656f84 (diff) | |
download | go-901510ed4ef1a979321f33159b534e374290ef65.tar.gz go-901510ed4ef1a979321f33159b534e374290ef65.zip |
cmd/link/internal/ld: skip the windows ASLR test when CGO_ENABLED=0
the test case is still using gcc when CGO is disabled.
Change-Id: I2d255bfaeb92816c8343ab72fd7984b6632d421d
GitHub-Last-Rev: de14748bd54c7db8687263a7c37080ec884d982a
GitHub-Pull-Request: golang/go#46120
Reviewed-on: https://go-review.googlesource.com/c/go/+/319169
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/cmd/link')
-rw-r--r-- | src/cmd/link/internal/ld/ld_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/link/internal/ld/ld_test.go b/src/cmd/link/internal/ld/ld_test.go index ca764632c3..3702a4d08f 100644 --- a/src/cmd/link/internal/ld/ld_test.go +++ b/src/cmd/link/internal/ld/ld_test.go @@ -174,6 +174,8 @@ func TestWindowsBuildmodeCSharedASLR(t *testing.T) { t.Skip("skipping windows amd64/386 only test") } + testenv.MustHaveCGO(t) + t.Run("aslr", func(t *testing.T) { testWindowsBuildmodeCSharedASLR(t, true) }) |