Make py-prettyprint.exp test names unique
authorTom Tromey <tom@tromey.com>
Sun, 9 Sep 2018 03:47:53 +0000 (21:47 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 9 Sep 2018 03:47:53 +0000 (21:47 -0600)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-prettyprint.exp

index 6403cb8eb69e7f75470b55ea196ee0c447cc2b94..a360c225ef8c43e5e9e26d8bab775c6747d68204 100644 (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:
index 0508a9718fec7fe09cea7e9b150bbfd330f60cc4..85b62f3d14d6eef6b258d6ec006a3eda8108b09e 100644 (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.