aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2020-07-13 11:34:04 -0700
committerSandra Loosemore <sandra@codesourcery.com>2020-07-13 11:34:04 -0700
commit74e4b667ec3f227ea65ce39d2cebc493f84f7bc2 (patch)
tree947a008feeda99c94aa872755244445fb6bb9788 /gdb/testsuite
parent7a705315596cf5effe01de8c3ac2535687c5663d (diff)
downloadgdb-74e4b667ec3f227ea65ce39d2cebc493f84f7bc2.zip
gdb-74e4b667ec3f227ea65ce39d2cebc493f84f7bc2.tar.gz
gdb-74e4b667ec3f227ea65ce39d2cebc493f84f7bc2.tar.bz2
Skip directory tests in gdb.base/info_sources.exp on remote host
When testing on a remote host, source files from build are copied to an arbitrary location on host. Tests that try to pattern-match host pathnames against directory prefixes on build don't generally work. 2020-07-13 Sandra Loosemore <sandra@codesourcery.com> gdb/testsuite/ * gdb.base/info_sources.exp: Skip directory match tests on remote hosts.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/info_sources.exp10
2 files changed, 12 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index dec5a44..7f4b25c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-13 Sandra Loosemore <sandra@codesourcery.com>
+
+ * gdb.base/info_sources.exp: Skip directory match tests on
+ remote hosts.
+
2020-07-13 Gary Benson <gbenson@redhat.com>
* gdb.base/savedregs.exp (caller): Use parentheses to
diff --git a/gdb/testsuite/gdb.base/info_sources.exp b/gdb/testsuite/gdb.base/info_sources.exp
index fa643c5..8bcedfa 100644
--- a/gdb/testsuite/gdb.base/info_sources.exp
+++ b/gdb/testsuite/gdb.base/info_sources.exp
@@ -71,7 +71,9 @@ test_info_sources "--" 1 1
# List both files with regexp matching anywhere in the filenames:
test_info_sources "info_sources" 1 1
-test_info_sources "gdb.base" 1 1
+if { ! [is_remote host] } {
+ test_info_sources "gdb.base" 1 1
+}
# List both files with regexp matching the filename basenames,
# using various parts of the -basename option:
@@ -88,8 +90,10 @@ test_info_sources "-b base" 0 1
# List the files with dirname matching regexp,
# using various part of the -dirname option:
-test_info_sources "-d base" 1 1
-test_info_sources "-dirname base" 1 1
+if { ! [is_remote host] } {
+ test_info_sources "-d base" 1 1
+ test_info_sources "-dirname base" 1 1
+}
# Test non matching regexp, with option terminator:
test_info_sources "-b -- -d" 0 0