diff options
author | Tom de Vries <tdevries@suse.de> | 2020-04-10 09:50:11 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-04-10 09:50:11 +0200 |
commit | 71ea2b6be8228759230cef7d5a7ab0b45b77c26c (patch) | |
tree | 6f39931cb9be6b9d731c9a6d0e84a761547906e1 /gdb/testsuite/gdb.base/style.exp | |
parent | bdfc1e8a0b176257bfc700de755463d3aaf69849 (diff) | |
download | gdb-71ea2b6be8228759230cef7d5a7ab0b45b77c26c.zip gdb-71ea2b6be8228759230cef7d5a7ab0b45b77c26c.tar.gz gdb-71ea2b6be8228759230cef7d5a7ab0b45b77c26c.tar.bz2 |
[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.
Diffstat (limited to 'gdb/testsuite/gdb.base/style.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/style.exp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp index 1071b02..129f174 100644 --- a/gdb/testsuite/gdb.base/style.exp +++ b/gdb/testsuite/gdb.base/style.exp @@ -34,6 +34,8 @@ save_vars { env(TERM) } { return -1 } + set readnow [readnow] + if {![runto_main]} { fail "style tests failed" return @@ -140,8 +142,15 @@ save_vars { env(TERM) } { ] set quoted [string_to_regexp $binfile] + set pass_re "Reading symbols from [style $quoted file]\.\.\." + if { $readnow } { + set pass_re \ + [multi_line \ + $pass_re \ + "Expanding full symbols from [style $quoted file]\.\.\."] + } gdb_test "file $binfile" \ - "Reading symbols from [style $quoted file]..." \ + $pass_re \ "filename is styled when loading symbol file" gdb_test "pwd" "Working directory [style .*? file].*" |