aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link
diff options
context:
space:
mode:
authorRichard Miller <millerresearch@gmail.com>2025-09-27 19:45:36 +0100
committerCherry Mui <cherryyz@google.com>2025-09-29 07:59:10 -0700
commitfe3ba74b9e6e3385cbf7c2f3a9c0b72baeac4b01 (patch)
tree8fbbdb440dd4e5acdd48ea68c76b975792ffca30 /src/cmd/link
parentd42d56b764f4c8b06aaa2de2dc9c1d2171e79490 (diff)
downloadgo-fe3ba74b9e6e3385cbf7c2f3a9c0b72baeac4b01.tar.xz
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>
Diffstat (limited to 'src/cmd/link')
-rw-r--r--src/cmd/link/dwarf_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/link/dwarf_test.go b/src/cmd/link/dwarf_test.go
index 6a60a746a5..4fce358e60 100644
--- a/src/cmd/link/dwarf_test.go
+++ b/src/cmd/link/dwarf_test.go
@@ -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()