[gdb/testsuite] Fix duplicate test-names in gdb.pascal
authorTom de Vries <tdevries@suse.de>
Tue, 12 May 2020 08:37:04 +0000 (10:37 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 12 May 2020 08:37:04 +0000 (10:37 +0200)
In gdb.pascal we have these duplicates:
...
DUPLICATE: gdb.pascal/gdb11492.exp: next
DUPLICATE: gdb.pascal/gdb11492.exp: print char_array
...

Fix these by using with_test_prefix.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

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

* gdb.pascal/gdb11492.exp: Use with_test_prefix.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.pascal/gdb11492.exp

index b76359e4867a7c4ab651e817ad0bcefc650a0870..6708eb4871fe3c5868ade9cd9b2f43928db47595 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-12  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.pascal/gdb11492.exp: Use with_test_prefix.
+
 2020-05-12  Tom de Vries  <tdevries@suse.de>
 
        * gdb.gdb/complaints.exp: Use with_test_prefix.
index a5a922ea9125a6fa702c561ee598182fa18a1428..fae6cd218f208fc6f295588114a29df5824a12df 100644 (file)
@@ -46,7 +46,11 @@ gdb_test "print /d char_array" { = \{50, 51, 52, 53, 54, 55, 56, 57\}}
 gdb_test "print /x char_array" { = \{0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39\}}
 # Use next two times to avoid GPC line numbering problem
 gdb_test "next" ""
-gdb_test "next" ""
-gdb_test "print char_array" " = '2345X789'"
+with_test_prefix "second" {
+    gdb_test "next" ""
+}
+with_test_prefix "after assignment" {
+    gdb_test "print char_array" " = '2345X789'"
+}
 gdb_exit
 
This page took 0.033855 seconds and 4 git commands to generate.