From 22a2ab04f58dc7c3f5fb0e6d8f0fa96ee4aa3951 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Thu, 15 Aug 2019 10:23:18 -0700 Subject: [PATCH] Disable dw2-dir-file-name.exp on remote and/or Windows host. This test has many hardwired assumptions that pathnames on build and host are the same, and that POSIX pathname syntax is used. This results in dozens of failures on a remote Windows host. Fixing these assumptions would involve nontrivial rewrites; meanwhile, let's make the test results reflect the reality that this testcase isn't supported on remote host. 2019-08-15 Sandra Loosemore gdb/testsuite/ * gdb.dwarf2/dw2-dir-file-name.exp: Skip on remote or Windows host. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c459bee55f3..9dbd36c0af8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-08-15 Sandra Loosemore + + * gdb.dwarf2/dw2-dir-file-name.exp: Skip on remote or + Windows host. + 2019-08-15 Sandra Loosemore * gdb.base/batch-preserve-term-settings.exp diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp index 246b4af2132..f8d5d161f80 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp @@ -19,6 +19,13 @@ if {![dwarf2_support]} { return 0 } +# This test has hard-wired assumptions that host and build filenames are +# the same, and assumes POSIX pathname syntax. +if { [is_remote host] || [ishost *-*-mingw*] } { + unsupported "dw2-dir-file-name.exp can only run on local host" + return 0 +} + # Find length of addresses in bytes. if {[is_64_target]} { set addr_len 8 -- 2.30.2