[gdb/testsuite] Handle USE_TUI in gdb.tui/corefile-run.exp
commit6b81ded4876cb836e5fd7d8bc2459fef99dcac70
authorTom de Vries <tdevries@suse.de>
Mon, 13 Mar 2023 16:20:09 +0000 (13 17:20 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 13 Mar 2023 16:20:09 +0000 (13 17:20 +0100)
tree3b9758278dce1ceba6425b136ec14adaee9018a5
parented7d5797b56e8b771d5f7553738f790819d96b6f
[gdb/testsuite] Handle USE_TUI in gdb.tui/corefile-run.exp

Once in a while I find myself rewriting a TUI test-case into a non-TUI
test-case, to better understand whether the problem I'm looking at is
related to the TUI or not.

I've got the impression that I've done this sufficiently often that it's worth
committing the non-TUI version, so having just written a non-TUI version of
gdb.tui/corefile-run.exp, let's commit it.

The non-TUI version can be enabled by doing:
...
$ make check "RUNTESTFLAGS=gdb.tui/corefile-run.exp USE_TUI=0"
...

Also remove hard-coding of a source line number.

Tested on x86_64-linux.
gdb/testsuite/gdb.tui/corefile-run.exp