]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/ld: skip the windows ASLR test when CGO_ENABLED=0
authorhao <tfzxyinhao@qq.com>
Fri, 28 May 2021 03:40:12 +0000 (03:40 +0000)
committerCherry Mui <cherryyz@google.com>
Mon, 28 Jun 2021 16:42:42 +0000 (16:42 +0000)
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>

src/cmd/link/internal/ld/ld_test.go

index ca764632c3d74f7d454fc0e61358e816ee57e58d..3702a4d08f586f3674da2f083cbdc493a939586c 100644 (file)
@@ -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)
        })