diff options
Diffstat (limited to 'src/cmd/go/go_test.go')
-rw-r--r-- | src/cmd/go/go_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index fa78578d12..d48791e77f 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -3497,8 +3497,8 @@ func TestBinaryOnlyPackages(t *testing.T) { tg.grepStdout("false", "did not see BinaryOnly=false for p4") } -// Issue 16050. -func TestAlwaysLinkSysoFiles(t *testing.T) { +// Issue 16050 and 21884. +func TestLinkSysoFiles(t *testing.T) { tg := testgo(t) defer tg.cleanup() tg.parallel() @@ -3517,6 +3517,10 @@ func TestAlwaysLinkSysoFiles(t *testing.T) { tg.setenv("CGO_ENABLED", "0") tg.run("list", "-f", "{{.SysoFiles}}", "syso") tg.grepStdout("a.syso", "missing syso file with CGO_ENABLED=0") + + tg.setenv("CGO_ENABLED", "1") + tg.run("list", "-msan", "-f", "{{.SysoFiles}}", "syso") + tg.grepStdoutNot("a.syso", "unexpected syso file with -msan") } // Issue 16120. |