[gdb/testsuite] Fix remove-inferiors.exp FAIL with readnow board
authorTom de Vries <tdevries@suse.de>
Tue, 11 Jun 2019 11:54:10 +0000 (13:54 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 11 Jun 2019 11:54:10 +0000 (13:54 +0200)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.multi/remove-inferiors.exp

index 0eaf7bbedead5a2858404b0fc427b2bdd69fa07e..c42b9635a41ef34eaacc47185bc10390a20643d2 100644 (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
index ec13ce52d20bbf3d55accfc58424d41e51f9f32e..18f6c902258c50dd645b09a263cdb05b734ee0d5 100644 (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."
This page took 0.032072 seconds and 4 git commands to generate.