[gdb/testsuite] Fix duplicate test-names in gdb.fortran
authorTom de Vries <tdevries@suse.de>
Tue, 12 May 2020 08:53:47 +0000 (10:53 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 12 May 2020 08:53:47 +0000 (10:53 +0200)
In gdb.fortran we have:
...
DUPLICATE: gdb.fortran/complex.exp: whatis $
DUPLICATE: gdb.fortran/complex.exp: whatis $
DUPLICATE: gdb.fortran/complex.exp: whatis $
DUPLICATE: gdb.fortran/complex.exp: whatis $
...

Fix this by using with_test_prefix.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-05-12  Tom de Vries  <tdevries@suse.de>

* gdb.fortran/complex.exp: Use with_test_prefix.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/complex.exp

index 1db518edcc5cd433b0aeac4ec40b64da23ff7172..ae72ce6dd73e774e990d42cd293dcf7beb6bf340 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-12  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.fortran/complex.exp: Use with_test_prefix.
+
 2020-05-12  Tom de Vries  <tdevries@suse.de>
 
        * gdb.trace/passcount.exp: Fix test-names.
index a88e553e586e74b30ab29cf3eb309fca3b567468..f1e754e1630598277c0d362e30a0d08225b00230 100644 (file)
@@ -38,21 +38,29 @@ gdb_test "print c16" " = \\(-874,19\\)"
 
 gdb_test "whatis c" "type = complex\\(kind=4\\)"
 gdb_test "print \$_creal (c)" " = 1000"
-gdb_test "whatis \$" " = real"
+with_test_prefix "c" {
+    gdb_test "whatis \$" " = real"
+}
 
 gdb_test "whatis c4" "type = complex\\(kind=4\\)"
 gdb_test "print \$_creal (c4)" " = 1000"
-gdb_test "whatis \$" " = real"
-
+with_test_prefix "c4" {
+    gdb_test "whatis \$" " = real"
+}
 gdb_test "whatis c8" "type = complex\\(kind=8\\)"
 gdb_test "print \$_creal (c8)" " = 321"
-gdb_test "whatis \$" " = real\\*8"
-
+with_test_prefix "c8" {
+    gdb_test "whatis \$" " = real\\*8"
+}
 gdb_test "whatis dc" "type = complex\\(kind=8\\)"
 gdb_test "print \$_creal (dc)" " = 321"
-gdb_test "whatis \$" " = real\\*8"
+with_test_prefix "dc" {
+    gdb_test "whatis \$" " = real\\*8"
+}
 
 gdb_test "whatis c16" "type = complex\\(kind=16\\)"
 gdb_test "print \$_creal (c16)" " = -874"
-gdb_test "whatis \$" " = real\\*16"
+with_test_prefix "c16" {
+    gdb_test "whatis \$" " = real\\*16"
+}
 
This page took 0.033678 seconds and 4 git commands to generate.