Skip to content

Commit fe3ba74

Browse files
millerresearchcherrymui
authored andcommitted
cmd/link: skip TestFlagW on platforms without DWARF symbol table
As with other DWARF tests, don't run TestFlagW on platforms where executables don't have a DWARF symbol table. Fixes golang#75585 Change-Id: I81014bf59b15e30ac1b2a7d24a52f9647db46c26 Reviewed-on: https://go-review.googlesource.com/c/go/+/706418 Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent d42d56b commit fe3ba74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/link/dwarf_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ func TestFlagW(t *testing.T) {
364364
if runtime.GOOS == "aix" {
365365
t.Skip("internal/xcoff cannot parse file without symbol table")
366366
}
367+
if !platform.ExecutableHasDWARF(runtime.GOOS, runtime.GOARCH) {
368+
t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
369+
}
370+
367371
t.Parallel()
368372

369373
tmpdir := t.TempDir()

0 commit comments

Comments
 (0)