[gdb/testsuite] Fix remove-inferiors.exp FAIL with readnow board

We see this failure with the readnow board:
...
FAIL: gdb.multi/remove-inferiors.exp: load binary
...

When running with board readnow, an extra message "Expanding full symbols" is
emitted after the "Reading symbols" message, and the regexp corresponding to
the FAIL only allows the first message.

Fix this by allowing the extra message in the regexp.

gdb/testsuite/ChangeLog:

2019-06-11  Tom de Vries  <tdevries@suse.de>

	PR testsuite/24521
	* gdb.multi/remove-inferiors.exp: Allow "Expanding full symbols"
	message.
This commit is contained in:
Tom de Vries 2019-06-11 13:54:10 +02:00
parent 86108c1311
commit fea82da0fe
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2019-06-11 Tom de Vries <tdevries@suse.de>
PR testsuite/24521
* gdb.multi/remove-inferiors.exp: Allow "Expanding full symbols"
message.
2019-06-11 Tom de Vries <tdevries@suse.de>
PR testsuite/24521

View File

@ -49,8 +49,9 @@ proc test_remove_inferiors { } {
# Load binfile and start the inferior.
set binfile_re [string_to_regexp ${binfile}]
gdb_test "file ${binfile}" \
"Reading symbols from ${binfile_re}..." \
"load binary"
[multi_line "Reading symbols from ${binfile_re}\.\.\.(" \
"Expanding full symbols from ${binfile_re}\.\.\.)?" ] \
"load binary"
if {![runto_main]} {
fail "couldn't run to main."