[gdb/testsuite] Rewrite catch-follow-exec.exp
authorTom de Vries <tdevries@suse.de>
Thu, 4 Oct 2018 22:04:27 +0000 (00:04 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 16 Oct 2018 20:40:41 +0000 (22:40 +0200)
commitc4b90788516fd431c86c22deac5001d6c4648227
treed5956e8958401c275ac8006e84d555fe43546522
parent66e6f0b760c2480e4ebdac8169adcee1fc31f689
[gdb/testsuite] Rewrite catch-follow-exec.exp

There are two problems with the current catch-follow-exec.exp:
- INTERNAL_GDBFLAGS (containing the datadir setting) is not used
- remote host testing doesn't work

Fix the former by using gdb_spawn_with_cmdline_opts.  Fix the latter by
requiring gdb-native.

Build on x86_64-linux with and without ubsan, and tested.

2018-10-16  Tom de Vries  <tdevries@suse.de>

PR gdb/23730
* gdb.base/catch-follow-exec.c: Add copyright notice.
* gdb.base/catch-follow-exec.exp: Rewrite to use
gdb_spawn_with_cmdline_opts.  Require gdb-native.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/catch-follow-exec.c
gdb/testsuite/gdb.base/catch-follow-exec.exp