Fix unstable test names in gdb.gdb/unittest.exp
authorPedro Alves <palves@redhat.com>
Tue, 24 Oct 2017 09:43:34 +0000 (10:43 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 24 Oct 2017 09:53:03 +0000 (10:53 +0100)
Currently, if you diff testsuite/gdb.sum of two builds built from different
source directories you see this spurious hunk:

  -PASS: gdb.gdb/unittest.exp: maintenance check xml-descriptions /home/pedro/gdb1/src/gdb/testsuite/../features
  +PASS: gdb.gdb/unittest.exp: maintenance check xml-descriptions /home/pedro/gdb2/src/gdb/testsuite/../features

After this commit we'll show instead:

  PASS: gdb.gdb/unittest.exp: maintenance check xml-descriptions ${srcdir}/../features

gdb/testsuite/ChangeLog:
2017-10-24  Pedro Alves  <palves@redhat.com>

* gdb.gdb/unittest.exp ('maintenance check xml-descriptions'): Use
custom test name.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/unittest.exp

index 36c2b952193370184c4553a10c49e122aba1ec0c..31a217299253e2284ffb511f4e8acd575cc16c27 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-24  Pedro Alves  <palves@redhat.com>
+
+       * gdb.gdb/unittest.exp ('maintenance check xml-descriptions'): Use
+       custom test name.
+
 2017-10-24  Pedro Alves  <palves@redhat.com>
 
        * gdb.base/startup-with-shell.exp ('touch $unique_file'): Don't
index c3e36e692379eae37181501f075ef543d0db788c..58494e169c5a78e1b237d68fc3617e03dbf50070 100644 (file)
@@ -18,5 +18,6 @@ gdb_test "maintenance selftest" "Ran $decimal unit tests, 0 failed"
 
 if { ![is_remote host] } {
     gdb_test "maintenance check xml-descriptions ${srcdir}/../features" \
-       "Tested $decimal XML files, 0 failed"
+       "Tested $decimal XML files, 0 failed" \
+       "maintenance check xml-descriptions \${srcdir}/../features"
 }
This page took 0.030662 seconds and 4 git commands to generate.