aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-06-12 12:04:54 -0600
committerTom Tromey <tromey@redhat.com>2014-06-12 12:09:21 -0600
commitf9579b990244a7f49757ca8bc3bcf48f7bc8505b (patch)
treed906c895f471181de1adcb56aa9b5b438050ec00
parentb4b01d36ac91ddc2c96cfac76726e13c404d9483 (diff)
downloadgdb-f9579b990244a7f49757ca8bc3bcf48f7bc8505b.zip
gdb-f9579b990244a7f49757ca8bc3bcf48f7bc8505b.tar.gz
gdb-f9579b990244a7f49757ca8bc3bcf48f7bc8505b.tar.bz2
don't use directory in test name
I noticed that a few tests in completion.exp put the directory name into the name of the resulting test. While the directory name is relative, this still makes for spurious differences depending on whether the test was run in serial or parallel mode. This patch fixes the problem. I'm checking it in. 2014-06-12 Tom Tromey <tromey@redhat.com> * gdb.base/completion.exp: Don't use directory name in test.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/completion.exp3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2b5cca3..607eba7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-12 Tom Tromey <tromey@redhat.com>
+
+ * gdb.base/completion.exp: Don't use directory name in test.
+
2014-06-09 Gary Benson <gbenson@redhat.com>
* gdb.base/sigall.c [Functions to send signals]: Reorder to
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index 2a85df5..c633a51 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -114,7 +114,8 @@ foreach dir1 [ list "./gdb.base" "./outputs/gdb.base/completion" ] {
&& [remote_file host exists ${dir1}/completion1.o] } {
foreach target_name ${targets} {
gdb_test "complete target ${target_name} ${dir1}/completion" \
- "target ${target_name} ${dir1}/completion.*${dir1}/completion0\\.o.*${dir1}/completion1\\.o.*"
+ "target ${target_name} ${dir1}/completion.*${dir1}/completion0\\.o.*${dir1}/completion1\\.o.*" \
+ "complete target ${target_name}"
}
break
}