From fee6da6e1d96796f8aa8308b3833a3e4cdb409ff Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 24 Oct 2017 10:43:34 +0100 Subject: [PATCH] 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 36c2b952193..31a21729925 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gdb/testsuite/gdb.gdb/unittest.exp b/gdb/testsuite/gdb.gdb/unittest.exp index c3e36e69237..58494e169c5 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" } -- 2.30.2