[gdb/testsuite] Skip gdb.base/readnever.exp with target board readnow
authorTom de Vries <tdevries@suse.de>
Thu, 23 Apr 2020 07:26:02 +0000 (09:26 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 23 Apr 2020 07:26:02 +0000 (09:26 +0200)
commit96038148d0e9f7dc89284310d065e27a3fa375f2
tree32188df0e5f6a23443cea4b88c55cd698ce27533
parentae3ab1f067b5ca9af33043d772f9f97d92fdd44c
[gdb/testsuite] Skip gdb.base/readnever.exp with target board readnow

When running test-case gdb.base/readnever.exp with target board readnow, we
have:
...
spawn gdb -nw -nx -data-directory data-directory -ex set sysroot -readnow \
  --readnever^M
gdb: '--readnow' and '--readnever' cannot be specified simultaneously^M
ERROR: : spawn id exp19 not open
...

Fix this by skipping the test when -readnow/--readnow is detected in
GDBFLAGS.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-04-23  Tom de Vries  <tdevries@suse.de>

* gdb.base/readnever.exp: Skip if GDBFLAGS contain -readnow/--readnow.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/readnever.exp