gdb/testsuite: Remove duplicates from gdb.base/define-prefix.exp
authorLancelot SIX <lsix@lancelotsix.com>
Sun, 21 Nov 2021 01:45:21 +0000 (01:45 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:33 +0000 (22:43 +0000)
When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/define-prefix.exp ...
    DUPLICATE: gdb.base/define-prefix.exp: define user command: ghi-prefix-cmd

Fix by adjusting test names.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/define-prefix.exp

index 18e5651bfb6b7015426d201ab3d0cf28ee6a55b4..47e0a17b8c6928ce80a1ebf8621c61a5082cf68f 100644 (file)
@@ -58,7 +58,7 @@ gdb_test_multiple "define abc-prefix def-prefix ghi-prefix-cmd" \
     "define user command: abc-prefix def-prefix ghi-prefix-cmd" {
        -re "Type commands for definition of \"abc-prefix def-prefix ghi-prefix-cmd\".\r\nEnd with a line saying just \"end\".\r\n>$" {
            gdb_test "end" "" \
-               "define user command: ghi-prefix-cmd"
+               "define empty user command: ghi-prefix-cmd"
        }
     }
 gdb_test_no_output "define-prefix abc-prefix def-prefix ghi-prefix-cmd"