mirror of
https://github.com/golang/go.git
synced 2026-02-05 10:25:06 +03:00
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 #75585 Change-Id: I81014bf59b15e30ac1b2a7d24a52f9647db46c26 Reviewed-on: https://go-review.googlesource.com/c/go/+/706418 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
This commit is contained in:
committed by
Cherry Mui
parent
d42d56b764
commit
fe3ba74b9e
@@ -364,6 +364,10 @@ func TestFlagW(t *testing.T) {
|
||||
if runtime.GOOS == "aix" {
|
||||
t.Skip("internal/xcoff cannot parse file without symbol table")
|
||||
}
|
||||
if !platform.ExecutableHasDWARF(runtime.GOOS, runtime.GOARCH) {
|
||||
t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
|
||||
tmpdir := t.TempDir()
|
||||
|
||||
Reference in New Issue
Block a user