gdb/testsuite: Remove duplicates from gdb.mi/mi-nonstop-exit.exp
authorLancelot SIX <lsix@lancelotsix.com>
Tue, 23 Nov 2021 13:42:13 +0000 (13:42 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:34 +0000 (22:43 +0000)
commitdd1655dfc3468a8ce43b684e817acedec53f0980
tree73d2e36cb92d0ecee05b33e414a14e922259fba3
parent94e3acde23ca8e68e14817661740e692d3f3e738
gdb/testsuite: Remove duplicates from gdb.mi/mi-nonstop-exit.exp

When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.mi/mi-nonstop-exit.exp ...
    DUPLICATE: gdb.mi/mi-nonstop-exit.exp: breakpoint at main
    DUPLICATE: gdb.mi/mi-nonstop-exit.exp: mi runto main

This test runs the same sequence of operations twice.  Refactor the code
by running both of those sequences within a foreach_with_prefix block to
ensure that the commands have unique test names.

Tested on x86_64-linux.
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp