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.
This commit is contained in:
Tom Tromey 2018-09-08 21:47:53 -06:00
parent 332cf4c925
commit 1aac008f1c
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,7 @@
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:

View File

@ -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.