don't use directory in test name
authorTom Tromey <tromey@redhat.com>
Thu, 12 Jun 2014 18:04:54 +0000 (12:04 -0600)
committerTom Tromey <tromey@redhat.com>
Thu, 12 Jun 2014 18:09:21 +0000 (12:09 -0600)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/completion.exp

index 2b5cca3df72bdba6d0816c41bddba289dc82db11..607eba7346fd79c77a5646a53c4185275e9e869d 100644 (file)
@@ -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
index 2a85df57a65d1ad0c71a13f7327e5554a1ca0f4a..c633a516dd766849d6e7cbc62fc58bfb4a783d4f 100644 (file)
@@ -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
     }