From: Tom de Vries Date: Tue, 3 Dec 2024 22:03:03 +0000 (+0100) Subject: [gdb/testsuite] Fix DUPLICATE in gdb.arch/pr25124.exp X-Git-Tag: gdb-16-branchpoint~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c99444905edcea5e4b053af6cc62313f8caf98fd;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Fix DUPLICATE in gdb.arch/pr25124.exp 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 --- diff --git a/gdb/testsuite/gdb.arch/pr25124.exp b/gdb/testsuite/gdb.arch/pr25124.exp index 3bf08a178ec..26cfc1368a0 100644 --- a/gdb/testsuite/gdb.arch/pr25124.exp +++ b/gdb/testsuite/gdb.arch/pr25124.exp @@ -30,7 +30,7 @@ clean_restart $binfile # Check if the disassemble ouput is correct. gdb_test "x /i main+8" \ "$hex :\[ \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 :\[ \t\]+bx\[ \t\]+lr" \ - "disassemble thumb instruction (2nd try)" + "disassemble thumb instruction, 2nd try"