aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-10-24 10:43:34 +0100
committerPedro Alves <palves@redhat.com>2017-10-24 10:53:03 +0100
commitfee6da6e1d96796f8aa8308b3833a3e4cdb409ff (patch)
tree9361e5737cf3649ffcf28f063ba000059b56dc0e /gdb/testsuite
parent10389c2c8b56b2519441e55bf16f77882fb897cb (diff)
downloadgdb-fee6da6e1d96796f8aa8308b3833a3e4cdb409ff.zip
gdb-fee6da6e1d96796f8aa8308b3833a3e4cdb409ff.tar.gz
gdb-fee6da6e1d96796f8aa8308b3833a3e4cdb409ff.tar.bz2
Fix unstable test names in gdb.gdb/unittest.exp
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.gdb/unittest.exp3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 36c2b95..31a2172 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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
include the unstable output directory name in the test's name.
(initial_setup_simple) <'set args'>: Use custom test name.
diff --git a/gdb/testsuite/gdb.gdb/unittest.exp b/gdb/testsuite/gdb.gdb/unittest.exp
index c3e36e6..58494e1 100644
--- a/gdb/testsuite/gdb.gdb/unittest.exp
+++ b/gdb/testsuite/gdb.gdb/unittest.exp
@@ -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"
}