gdb/testsuite: Remove duplicates from gdb.base/shlib-call.exp
authorLancelot SIX <lsix@lancelotsix.com>
Sun, 21 Nov 2021 01:33:13 +0000 (01:33 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:33 +0000 (22:43 +0000)
commit5bdd79dff95269a7bf6428c449c1cfd5eab0c3ae
tree05734a2bfc18abd851472e5441cdc68eec8771ca
parentd95edb60be9f66cb4797130c8902bf5814b19448
gdb/testsuite: Remove duplicates from gdb.base/shlib-call.exp

When I run the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/shlib-call.exp ...
    DUPLICATE: gdb.base/shlib-call.exp: print g
    DUPLICATE: gdb.base/shlib-call.exp: set print sevenbit-strings
    DUPLICATE: gdb.base/shlib-call.exp: set print address off
    DUPLICATE: gdb.base/shlib-call.exp: set width 0
    DUPLICATE: gdb.base/shlib-call.exp: continue until exit

Fix by adjusting the test names when required, and by removing
un-necessary commands.

While at it, do some cleanup:
- Replace an explicit GDB restart sequence with a call to clean_restart.
- Remove trailing whitespaces.
- Use $gdb_test_name in gdb_test_multiple.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/shlib-call.exp