[gdb/testsuite] Split up multi-exec test-cases
authorTom de Vries <tdevries@suse.de>
Thu, 14 May 2020 15:24:49 +0000 (17:24 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 14 May 2020 15:24:49 +0000 (17:24 +0200)
commit971a374783061ad1d1574508235e364dfd0fc6e2
tree3504af430b52c2bedde6932eed5bb51f1c742e74
parenta05575d39a5348bd9979fc09e658a03ff22722b9
[gdb/testsuite] Split up multi-exec test-cases

With test-case gdb.base/align.exp and target board native-gdbserver, we run
into:
...
(gdb) file outputs/gdb.base/align/c/align^M
Reading symbols from outputs/gdb.base/align/c/align...^M
(gdb) delete breakpoints^M
(gdb) info breakpoints^M
No breakpoints or watchpoints.^M
(gdb) break main^M
Breakpoint 1 at 0x4004ab: file outputs/gdb.base/align/c/align.c, line 838.^M
(gdb) kill^M
The program is not being run.^M
(gdb) spawn gdbserver --once localhost:2592 outputs/gdb.base/align/align^M
Process outputs/gdb.base/align/align created; pid = 6946^M
Listening on port 2592^M
target remote localhost:2592^M
Remote debugging using localhost:2592^M
warning: Mismatch between current exec-file outputs/gdb.base/align/c/align^M
and automatically determined exec-file outputs/gdb.base/align/align^M
exec-file-mismatch handling is currently "ask"^M
Load new symbol table from "outputs/gdb.base/align/align"? (y or n) Quit^M
(gdb) ERROR: test suppressed
...

Fix this by turning this and similar test-cases into regular, single
executable test-cases.

This fixes 100+ FAILs with target board native-gdbserver.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-05-14  Tom de Vries  <tdevries@suse.de>

* gdb.base/align.exp: Split into ...
* gdb.base/align.exp.in: ...
* gdb.base/align-c++.exp: ...
* gdb.base/align-c.exp: ... these.
* gdb.base/infcall-nested-structs.exp: Split into ...
* gdb.base/infcall-nested-structs.exp.in: ...
* gdb.base/infcall-nested-structs-c++.exp: ...
* gdb.base/infcall-nested-structs-c.exp: ... these.
* gdb.base/info-types.exp: Split into ...
* gdb.base/info-types.exp.in: ...
* gdb.base/info-types-c++.exp: ...
* gdb.base/info-types-c.exp: ... these.
* gdb.base/max-depth.exp: Split into ...
* gdb.base/max-depth.exp.in: ...
* gdb.base/max-depth-c++.exp: ...
* gdb.base/max-depth-c.exp: ... these.
* gdb.cp/infcall-nodebug.exp: Split into ...
* gdb.cp/infcall-nodebug.exp.in: ...
* gdb.cp/infcall-nodebug-c++-d0.exp: ...
* gdb.cp/infcall-nodebug-c++-d1.exp: ...
* gdb.cp/infcall-nodebug-c-d0.exp: ...
* gdb.cp/infcall-nodebug-c-d1.exp: ... these.
23 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/align-c++.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/align-c.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/align.exp [deleted file]
gdb/testsuite/gdb.base/align.exp.in [new file with mode: 0644]
gdb/testsuite/gdb.base/infcall-nested-structs-c++.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/infcall-nested-structs-c.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/infcall-nested-structs.exp [deleted file]
gdb/testsuite/gdb.base/infcall-nested-structs.exp.in [new file with mode: 0644]
gdb/testsuite/gdb.base/info-types-c++.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/info-types-c.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/info-types.exp [deleted file]
gdb/testsuite/gdb.base/info-types.exp.in [new file with mode: 0644]
gdb/testsuite/gdb.base/max-depth-c++.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/max-depth-c.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/max-depth.exp [deleted file]
gdb/testsuite/gdb.base/max-depth.exp.in [new file with mode: 0644]
gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp [new file with mode: 0644]
gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp [new file with mode: 0644]
gdb/testsuite/gdb.cp/infcall-nodebug-c-d0.exp [new file with mode: 0644]
gdb/testsuite/gdb.cp/infcall-nodebug-c-d1.exp [new file with mode: 0644]
gdb/testsuite/gdb.cp/infcall-nodebug.exp [deleted file]
gdb/testsuite/gdb.cp/infcall-nodebug.exp.in [new file with mode: 0644]