gdb/testsuite: Remove duplicates from gdb.base/pointers.exp
authorLancelot SIX <lsix@lancelotsix.com>
Sun, 21 Nov 2021 01:55:43 +0000 (01:55 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:34 +0000 (22:43 +0000)
commit148ac50e89b66c1d7934f464195ba559f5cc8cd0
treedff3ccde9777bd6f53f0c7ada5d7de935611903b
parentbfc9663f9b74060f64a70a443b05afb2e6585b7a
gdb/testsuite: Remove duplicates from gdb.base/pointers.exp

When I run the testsuite, I have :

    Running .../gdb/testsuite/gdb.base/pointers.exp ...
    DUPLICATE: gdb.base/pointers.exp: pointer assignment

Fix by placing the sections with duplication in with_test_prefix blocks.
This removes the duplication and gives a better organization the file.

Tested on x86_64-linux.
Co-Authored-By: Pedro Alves <pedro@palves.net>
gdb/testsuite/gdb.base/pointers.exp