]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: skip TestFlagW on AIX
authorCherry Mui <cherryyz@google.com>
Fri, 26 Sep 2025 13:38:23 +0000 (09:38 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 26 Sep 2025 17:15:33 +0000 (10:15 -0700)
The internal/xcoff can only parse XCOFF with symbol table. This
test creates executables without symbol table. Skip the test.

(It might be possible to make internal/xcoff work with binaries
without symbol table? Leave it for the future.)

Fixes #75618.

Change-Id: I273ffefee5376d987accd5aa48c9473d2b3df055
Reviewed-on: https://go-review.googlesource.com/c/go/+/707095
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/link/dwarf_test.go

index 4ca578498d79234c87ed3a99719a752ad03e16a4..6a60a746a5b48bc4c103593b4d2ccd3f48bbc4e7 100644 (file)
@@ -361,6 +361,9 @@ func TestDWARFLocationList(t *testing.T) {
 
 func TestFlagW(t *testing.T) {
        testenv.MustHaveGoBuild(t)
+       if runtime.GOOS == "aix" {
+               t.Skip("internal/xcoff cannot parse file without symbol table")
+       }
        t.Parallel()
 
        tmpdir := t.TempDir()