]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: fix DUPLICATE in call-sc.exp
authorJan Vrany <jan.vrany@labware.com>
Mon, 12 Jan 2026 19:55:03 +0000 (19:55 +0000)
committerJan Vrany <jan.vrany@labware.com>
Mon, 12 Jan 2026 19:55:03 +0000 (19:55 +0000)
With test-case gdb.base/call-sc.exp I get:

    DUPLICATE: gdb.base/call-sc.exp: tc: ptype; call-sc-tc (char)
    DUPLICATE: gdb.base/call-sc.exp: ts: ptype; call-sc-ts (short)
    DUPLICATE: gdb.base/call-sc.exp: ti: ptype; call-sc-ti (int)
    ...

Fix this by changing test name in testcase added in commit be90f3e2.

Tested on x86_64-linux.

Approved-By: Tom de Vries <tdevries@suse.de>
gdb/testsuite/gdb.base/call-sc.exp

index 3f99832f4df026e10c0ad7b3ed48f589da3c1090..7fbb60451522a12d74ec9867b575a328e1a6035a 100644 (file)
@@ -81,7 +81,7 @@ proc start_scalars_test { type } {
     gdb_test_multiple "ptype/r foo" "ptype foo; ${testfile}" {
        -re "type = .*$gdb_prompt $" {
            set foo_t "$expect_out(1,string)"
-           pass "$test (${foo_t})"
+           pass "ptype foo; ${testfile} (${foo_t})"
        }
     }
 }