diff options
author | Tom Tromey <tom@tromey.com> | 2018-09-08 21:47:53 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-09-08 21:47:53 -0600 |
commit | 1aac008f1c2f0a239b7ba26efe9d6b68044cddf8 (patch) | |
tree | 67db804f8288dd877debd2663dabdc06014fa11b /gdb | |
parent | 332cf4c9251a31f0addc2ce2970c9a8bb0c16f96 (diff) | |
download | gdb-1aac008f1c2f0a239b7ba26efe9d6b68044cddf8.zip gdb-1aac008f1c2f0a239b7ba26efe9d6b68044cddf8.tar.gz gdb-1aac008f1c2f0a239b7ba26efe9d6b68044cddf8.tar.bz2 |
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 <tom@tromey.com>
* gdb.python/py-prettyprint.exp: Use with_test_prefix.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-prettyprint.exp | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 6403cb8..a360c22 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2018-09-08 Tom Tromey <tom@tromey.com> + * gdb.python/py-prettyprint.exp: Use with_test_prefix. + +2018-09-08 Tom Tromey <tom@tromey.com> + PR python/16047: * gdb.python/py-prettyprint.py (pp_int_typedef3): New class. (register_pretty_printers): Register new printer. diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index 0508a97..85b62f3 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. |