gdb/testsuite: Remove duplicates from gdb.base/readline.exp
authorLancelot SIX <lsix@lancelotsix.com>
Sun, 21 Nov 2021 00:35:01 +0000 (00:35 +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/readline.exp ...
    DUPLICATE: gdb.base/readline.exp: Simple operate-and-get-next - final prompt

Fix by adjusting the prefix given to the second 'simple' call to
operate_and_get_next.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/readline.exp

index a1994b2abcd02d24737c0a0df5bacee3c13445a6..4d770336eb6af152e6de73aa9110fff0a794f06d 100644 (file)
@@ -193,7 +193,7 @@ save_vars { env(TERM) } {
        gdb_start
        gdb_reinitialize_dir $srcdir/$subdir
 
-       operate_and_get_next "Simple operate-and-get-next" \
+       operate_and_get_next "Simple operate-and-get-next, two" \
            "p 7" ".* = 7" \
            "p 8" ".* = 8" \
            "p 9" ".* = 9"