[PATCH 25/29] gdb/testsuite: Remove duplicates from gdb.base/pointers.exp
Pedro Alves
pedro@palves.net
Fri Dec 10 23:27:27 GMT 2021
On 2021-11-21 17:56, Lancelot SIX via Gdb-patches wrote:
> When I run the testsuite, I have :
>
> Running .../gdb/testsuite/gdb.base/pointers.exp ...
> DUPLICATE: gdb.base/pointers.exp: pointer assignment
>
> Fix by adjusting the test names.
>
> Tested on x86_64-linux.
> ---
> gdb/testsuite/gdb.base/pointers.exp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gdb/testsuite/gdb.base/pointers.exp b/gdb/testsuite/gdb.base/pointers.exp
> index fa7531d0f85..cd10a721964 100644
> --- a/gdb/testsuite/gdb.base/pointers.exp
> +++ b/gdb/testsuite/gdb.base/pointers.exp
> @@ -147,14 +147,14 @@ gdb_test "print v_int_pointer > v_int_pointer2" " = $false" \
>
> gdb_test_no_output "set variable y = *v_int_pointer++" \
> "set y = *v_int_pointer++"
> -gdb_test "print y" " = 6" "pointer assignment"
> +gdb_test "print y" " = 6" "pointer assignment (after y = *v_int_pointer++)"
> gdb_test "print *v_int_pointer" " = 18" "and post-increment"
Tail parens bad. :-)
>
>
>
> gdb_test_no_output "set variable y = *--v_int_pointer2" \
> "set y = *--v_int_pointer2"
> -gdb_test "print y" " = 6" "pointer assignment"
> +gdb_test "print y" " = 6" "pointer assignment (after y = *--v_int_pointer2)"
> gdb_test "print *v_int_pointer2" " = 6" "and pre-decrement"
>
>
>
More information about the Gdb-patches
mailing list