gdb/testsuite: Remove duplicates from gdb.mi/mi-catch-load.exp
authorLancelot SIX <lsix@lancelotsix.com>
Mon, 22 Nov 2021 22:36:47 +0000 (22:36 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:34 +0000 (22:43 +0000)
commit202fb8408581fa1611d8f467c76199247b7d5a01
tree46bd2843139f0915f5b02f357f7e7281d91d0ae3
parent4df98d9d31173d45438fbf000e6ed2d3cdd98ae2
gdb/testsuite: Remove duplicates from gdb.mi/mi-catch-load.exp

When I run the testsuite, I have:

    Running .../gdb/testsuite/gdb.mi/mi-catch-load.exp ...
    DUPLICATE: gdb.mi/mi-catch-load.exp: breakpoint at main
    DUPLICATE: gdb.mi/mi-catch-load.exp: mi runto main

Fix by grouping the various phases in with_test_prefix blocks.  Since
the tests now have a prefix, remove the manually written prefixes in
testnames.

Also change some messages with the pattern "(timeout) $testname" into
"$estname (timeout)" since tools will handle this as $testname[1] (which
is what we want in this particular scenario).

Tested on x86_64-linux.

[1] https://sourceware.org/gdb/wiki/GDBTestcaseCookbook#Do_not_use_.22tail_parentheses.22_on_test_messages
gdb/testsuite/gdb.mi/mi-catch-load.exp