From fee6da6e1d96796f8aa8308b3833a3e4cdb409ff Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 24 Oct 2017 10:43:34 +0100 Subject: 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 * gdb.gdb/unittest.exp ('maintenance check xml-descriptions'): Use custom test name. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.gdb/unittest.exp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + * gdb.gdb/unittest.exp ('maintenance check xml-descriptions'): Use + custom test name. + +2017-10-24 Pedro Alves + * 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" } -- cgit v1.1