From: Tom Tromey Date: Sun, 9 Sep 2018 03:47:53 +0000 (-0600) Subject: Make py-prettyprint.exp test names unique X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1aac008f1c2f0a239b7ba26efe9d6b68044cddf8;p=binutils-gdb.git Make py-prettyprint.exp test names unique I noticed that the py-prettyprint.exp test names were not unique. This patch fixes the problem via with_test_prefix. gdb/testsuite/ChangeLog 2018-09-08 Tom Tromey * gdb.python/py-prettyprint.exp: Use with_test_prefix. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 6403cb8eb69..a360c225ef8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-09-08 Tom Tromey + + * gdb.python/py-prettyprint.exp: Use with_test_prefix. + 2018-09-08 Tom Tromey PR python/16047: diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index 0508a9718fe..85b62f3d14d 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -134,11 +134,15 @@ proc run_lang_tests {exefile lang} { gdb_continue_to_end } -if { [run_lang_tests "${binfile}" "c"] == -1 } { - return +with_test_prefix c { + if { [run_lang_tests "${binfile}" "c"] == -1 } { + return + } } -if { [run_lang_tests "${binfile}-cxx" "c++"] == -1 } { - return +with_test_prefix c++ { + if { [run_lang_tests "${binfile}-cxx" "c++"] == -1 } { + return + } } # Run various other tests.