Skip to content

Commit 4631a2d

Browse files
committed
cmd/link: skip TestFlagW on AIX
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 golang#75618. Change-Id: I273ffefee5376d987accd5aa48c9473d2b3df055 Reviewed-on: https://go-review.googlesource.com/c/go/+/707095 Reviewed-by: David Chase <[email protected]> Run-TryBot: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 0f31d74 commit 4631a2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd/link/dwarf_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ func TestDWARFLocationList(t *testing.T) {
361361

362362
func TestFlagW(t *testing.T) {
363363
testenv.MustHaveGoBuild(t)
364+
if runtime.GOOS == "aix" {
365+
t.Skip("internal/xcoff cannot parse file without symbol table")
366+
}
364367
t.Parallel()
365368

366369
tmpdir := t.TempDir()

0 commit comments

Comments
 (0)