]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix DUPLICATE in gdb.arch/pr25124.exp
authorTom de Vries <tdevries@suse.de>
Tue, 3 Dec 2024 22:03:03 +0000 (23:03 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 3 Dec 2024 22:03:03 +0000 (23:03 +0100)
With test-case gdb.arch/pr25124.exp, I run into:
...
PASS: gdb.arch/pr25124.exp: disassemble thumb instruction (1st try)
PASS: gdb.arch/pr25124.exp: disassemble thumb instruction (2nd try)
DUPLICATE: gdb.arch/pr25124.exp: disassemble thumb instruction (2nd try)
...

Fix this by using a comma instead of parentheses.

Tested on arm-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.arch/pr25124.exp

index 3bf08a178ec83463dce4a1c349ce1df94d64cfde..26cfc1368a0619fb965f48e3800e00f30241fd9a 100644 (file)
@@ -30,7 +30,7 @@ clean_restart $binfile
 # Check if the disassemble ouput is correct.
 gdb_test "x /i main+8" \
        "$hex <main\\+8>:\[ \t\]+bx\[ \t\]+lr" \
-       "disassemble thumb instruction (1st try)"
+       "disassemble thumb instruction, 1st try"
 
 # Reload the symbol file to trigger the bug.
 gdb_load ${binfile}
@@ -38,4 +38,4 @@ gdb_load ${binfile}
 # Check if the disassemble output is the same as above.
 gdb_test "x /i main+8" \
        "$hex <main\\+8>:\[ \t\]+bx\[ \t\]+lr" \
-       "disassemble thumb instruction (2nd try)"
+       "disassemble thumb instruction, 2nd try"