diff options
author | Tom de Vries <tdevries@suse.de> | 2020-05-12 10:28:44 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-05-12 10:28:44 +0200 |
commit | c9f3b40e1ad5ea299e7725951bb78222fefcdf51 (patch) | |
tree | 27df87e117d0eaaf5a1bde448c6765e26530c332 /gdb/testsuite/gdb.xml | |
parent | 2528f8ada68f0bf26c7e978a5be76dd3ec763f8b (diff) | |
download | fsf-binutils-gdb-c9f3b40e1ad5ea299e7725951bb78222fefcdf51.zip fsf-binutils-gdb-c9f3b40e1ad5ea299e7725951bb78222fefcdf51.tar.gz fsf-binutils-gdb-c9f3b40e1ad5ea299e7725951bb78222fefcdf51.tar.bz2 |
[gdb/testsuite] Fix duplicate test-names in gdb.{gdb,opt,xml}
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.
Diffstat (limited to 'gdb/testsuite/gdb.xml')
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-regs.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/tdesc-regs.exp index 1ec20a1..bb04420 100644 --- a/gdb/testsuite/gdb.xml/tdesc-regs.exp +++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp @@ -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" +} |