[gdb/testsuite] Fix duplicate test-names in gdb.{gdb,opt,xml}
authorTom de Vries <tdevries@suse.de>
Tue, 12 May 2020 08:28:44 +0000 (10:28 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 12 May 2020 08:28:44 +0000 (10:28 +0200)
There are 3 test directories with one duplicate test-name: gdb.gdb, gdb.opt
and gdb.xml.  The duplicates are:
...
DUPLICATE: gdb.gdb/complaints.exp: call complaint_internal ($cstr)
DUPLICATE: gdb.opt/inline-locals.exp: info locals above bar 2 \
  (PRMS: gdb/25695)
DUPLICATE: gdb.xml/tdesc-regs.exp: ptype $extrareg
...

Fix as appropriate.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

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

* gdb.gdb/complaints.exp: Use with_test_prefix.
* gdb.xml/tdesc-regs.exp: Same.
* gdb.opt/inline-locals.exp: Fix test name.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/complaints.exp
gdb/testsuite/gdb.opt/inline-locals.exp
gdb/testsuite/gdb.xml/tdesc-regs.exp

index 53181b685a601c78326a14b4a87ff682905c36cd..b76359e4867a7c4ab651e817ad0bcefc650a0870 100644 (file)
@@ -1,3 +1,9 @@
+2020-05-12  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.gdb/complaints.exp: Use with_test_prefix.
+       * gdb.xml/tdesc-regs.exp: Same.
+       * gdb.opt/inline-locals.exp: Fix test name.
+
 2020-05-12  Tom de Vries  <tdevries@suse.de>
 
        * gdb.dwarf2/comp-unit-lang.exp: Use with_test_prefix.
index b4a5ab30870034ff4c34c48bd0690c932e94333e..922530caa50bc6ad1fc9f8abbb7de2baef8aeadf 100644 (file)
@@ -65,9 +65,11 @@ proc test_initial_complaints { } {
        "During symbol reading: Register a complaint"
 
     # Re-issue the first message #1
-    gdb_test_stdio \
-       "call complaint_internal (\$cstr)" \
-       "During symbol reading: Register a complaint"
+    with_test_prefix "re-issue" {
+       gdb_test_stdio \
+           "call complaint_internal (\$cstr)" \
+           "During symbol reading: Register a complaint"
+    }
 
     # Add a second complaint, expect it
     gdb_test_stdio \
index 3dee0aabfe497a2cf07b7880a7a3b698b701a04a..8104b0f5b732e3d9fbc7dc8a21233d060c484fe0 100644 (file)
@@ -95,7 +95,7 @@ if { ! $no_frames } {
     set pass_re "array = {$decimal, \[^\r\n\]*}"
     set kfail_re [multi_line $pass_re \
                      "array = {<optimized out> <repeats 64 times>}"]
-    gdb_test_multiple "info locals" "info locals above bar 2" {
+    gdb_test_multiple "info locals" "info locals above bar 3" {
        -re -wrap $pass_re {
            pass $gdb_test_name
        }
index 1ec20a19449e1dd458e3a2b0c74f06245a124a35..bb04420b246aceaa18517c5a45e44bd4edd18e2b 100644 (file)
@@ -184,6 +184,8 @@ gdb_test "ptype \$mixed_flags" \
 gdb_test "maintenance print reggroups" \
     " Group\[ \t\]+Type\[ \t\]+\r\n.* general\[ \t\]+user\[ \t\]+\r\n.* foo\[ \t\]+user\[ \t\]+"
 
-load_description "core-only.xml" "" "test-regs.xml"
-# The extra register from the previous description should be gone.
-gdb_test "ptype \$extrareg" "type = void"
+with_test_prefix "core-only.xml" {
+    load_description "core-only.xml" "" "test-regs.xml"
+    # The extra register from the previous description should be gone.
+    gdb_test "ptype \$extrareg" "type = void"
+}