diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-14 14:52:38 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-14 14:52:38 +0200 |
commit | 58eaf4e9bdf53806778e94efe932e9417a21a306 (patch) | |
tree | c0e90eb7dd9835e5f02f3b3a6fba08f87177b263 /gdb | |
parent | 211aafd18d10b7739a16df5cc637952fd3f508e8 (diff) | |
download | gdb-58eaf4e9bdf53806778e94efe932e9417a21a306.zip gdb-58eaf4e9bdf53806778e94efe932e9417a21a306.tar.gz gdb-58eaf4e9bdf53806778e94efe932e9417a21a306.tar.bz2 |
[gdb/testsuite] Fix gdb_load_no_complaints with gnu-debuglink
When running test-case gdb.dwarf2/dw2-ranges-psym-warning.exp with target
board gnu-debuglink I run into:
...
(gdb) file dw2-ranges-psym-warning^M
Reading symbols from dw2-ranges-psym-warning...^M
Reading symbols from .debug/dw2-ranges-psym-warning.debug...^M
(gdb) FAIL: gdb.dwarf2/dw2-ranges-psym-warning.exp: No complaints
...
Fix this by updating the regexp in gdb_load_no_complaints.
Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 926c332..929e6b1 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -5406,8 +5406,8 @@ proc gdb_load_no_complaints { arg } { # Verify that there were no complaints. set re \ [multi_line \ - "^Reading symbols from \[^\r\n\]*" \ - "(Expanding full symbols from \[^\r\n\]*" \ + "^(Reading symbols from \[^\r\n\]*" \ + ")+(Expanding full symbols from \[^\r\n\]*" \ ")?$gdb_prompt $"] gdb_assert {[regexp $re $gdb_file_cmd_msg]} "No complaints" } |