]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Disable dw2-dir-file-name.exp on remote and/or Windows host.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 15 Aug 2019 17:23:18 +0000 (10:23 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 15 Aug 2019 17:41:58 +0000 (10:41 -0700)
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  <sandra@codesourcery.com>

gdb/testsuite/
* gdb.dwarf2/dw2-dir-file-name.exp: Skip on remote or
Windows host.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp

index c459bee55f3aabe726aea7f89f5beabd3f4402d5..9dbd36c0af85b187a8a8b24aee17d6de18d1ec6d 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-15  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gdb.dwarf2/dw2-dir-file-name.exp: Skip on remote or
+       Windows host.
+
 2019-08-15  Sandra Loosemore  <sandra@codesourcery.com>
 
        * gdb.base/batch-preserve-term-settings.exp
index 246b4af213293ab7e87a634e9e6be4303eb04992..f8d5d161f80341f56bd74dc1ba6e567ff006d71a 100644 (file)
@@ -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