[PATCH 08/29] gdb/testsuite: Remove duplicates from gdb.base/decl-before-def.exp
Andrew Burgess
aburgess@redhat.com
Tue Jan 4 14:13:51 GMT 2022
* Lancelot SIX via Gdb-patches <gdb-patches@sourceware.org> [2021-11-21 17:56:15 +0000]:
> When running the testsuite, I have:
>
> Running .../gdb/testsuite/gdb.base/decl-before-def.exp ...
> DUPLICATE: gdb.base/decl-before-def.exp: p a
>
> Fix by giving explicit names to the two tests that use the same command.
>
> Tested on x86_64-linux.
LGTM.
Thanks,
Andrew
> ---
> gdb/testsuite/gdb.base/decl-before-def.exp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gdb/testsuite/gdb.base/decl-before-def.exp b/gdb/testsuite/gdb.base/decl-before-def.exp
> index d907e656e33..0b3f0435b2e 100644
> --- a/gdb/testsuite/gdb.base/decl-before-def.exp
> +++ b/gdb/testsuite/gdb.base/decl-before-def.exp
> @@ -23,10 +23,10 @@ if {[prepare_for_testing "failed to prepare" $testfile $sources]} {
> # This is required due to PR25764.
> gdb_test "maint expand-symtabs"
>
> -gdb_test "p a" { = \{1, 2\}}
> +gdb_test "p a" { = \{1, 2\}} "no running process: p a"
>
> if ![runto_main] then {
> return 0
> }
>
> -gdb_test "p a" { = \{1, 2\}}
> +gdb_test "p a" { = \{1, 2\}} "running process: p a"
> --
> 2.33.1
>
More information about the Gdb-patches
mailing list