[gdb/testsuite] Fix -readnow FAIL in gdb.base/style.exp
authorTom de Vries <tdevries@suse.de>
Fri, 10 Apr 2020 07:50:11 +0000 (09:50 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 10 Apr 2020 07:50:11 +0000 (09:50 +0200)
commit71ea2b6be8228759230cef7d5a7ab0b45b77c26c
tree6f39931cb9be6b9d731c9a6d0e84a761547906e1
parentbdfc1e8a0b176257bfc700de755463d3aaf69849
[gdb/testsuite] Fix -readnow FAIL in gdb.base/style.exp

When running test-case gdb.base/style.exp with target board readnow, we run
into:
...
FAIL: gdb.base/style.exp: filename is styled when loading symbol file
...

The problem is that with -readnow, an extra "Expanding full symbols" message
is generated:
...
(gdb) file $file^M
Reading symbols from $file...^M
Expanding full symbols from $file...^M
(gdb) FAIL: gdb.base/style.exp: filename is styled when loading symbol file
...
and the test does not expect this message.

Fix this by expecting the additional message for -readnow.

gdb/testsuite/ChangeLog:

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

* gdb.base/style.exp: Expect "Expanding full symbols" message for
-readnow.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/style.exp