gdb/testsuite: Remove duplicates from gdb.base/nested-subp2.exp
authorLancelot SIX <lsix@lancelotsix.com>
Sun, 21 Nov 2021 15:34:09 +0000 (15:34 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:34 +0000 (22:43 +0000)
commitc6336a6db001c10383376b762262ca8f953d65c2
tree5196c97de031f6363be512838e14c63013260195
parent8cc261b7814cdd04735be2e7af1fafc19df1b3b6
gdb/testsuite: Remove duplicates from gdb.base/nested-subp2.exp

When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/nested-subp2.exp ...
    DUPLICATE: gdb.base/nested-subp2.exp: continue to the STOP marker
    DUPLICATE: gdb.base/nested-subp2.exp: print c
    DUPLICATE: gdb.base/nested-subp2.exp: print count

Fix by using with_test_prefix to differentiate the test that are
performed at different points during the execution of the debuggee.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/nested-subp2.exp