diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2021-11-19 23:34:27 +0000 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2022-01-07 22:43:33 +0000 |
commit | 7a6a9616113ff071fc4a4014dc827c33f3f22292 (patch) | |
tree | 5684c7f8f686c44db5e4588fb05b99400728edf2 | |
parent | 1182b42df6b11fc9fe1619139a3ee80457d9d37e (diff) | |
download | binutils-7a6a9616113ff071fc4a4014dc827c33f3f22292.zip binutils-7a6a9616113ff071fc4a4014dc827c33f3f22292.tar.gz binutils-7a6a9616113ff071fc4a4014dc827c33f3f22292.tar.bz2 |
gdb/testsuite: Remove duplicates from gdb.base/solib-display.exp
When running the testsuite, I have:
Running .../gdb/testsuite/gdb.base/solib-display.exp ...
DUPLICATE: gdb.base/solib-display.exp: NO: break 25
DUPLICATE: gdb.base/solib-display.exp: NO: continue
DUPLICATE: gdb.base/solib-display.exp: IN: break 25
DUPLICATE: gdb.base/solib-display.exp: IN: continue
DUPLICATE: gdb.base/solib-display.exp: SEP: break 25
DUPLICATE: gdb.base/solib-display.exp: SEP: continue
The 'break 25' appears because the test inserts two breakpoints at the
same location. Fix this by only inserting the breakpoint once.
Fix the 'continue' DUPLICATE by giving a phony name to the second
continue: 'continue two'.
While at it, this commit also removes a trailing space.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.base/solib-display.exp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/solib-display.exp b/gdb/testsuite/gdb.base/solib-display.exp index a60644d..d675413 100644 --- a/gdb/testsuite/gdb.base/solib-display.exp +++ b/gdb/testsuite/gdb.base/solib-display.exp @@ -140,7 +140,7 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" { # are not cleared permaturely. gdb_test "break [gdb_get_line_number "break here" ${testfile}.c]" \ - ".*Breakpoint.* at .*" + ".*Breakpoint.* at .*" gdb_test "continue" gdb_test "display main_global" "4: main_global = 44" @@ -153,11 +153,9 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" { } gdb_test "" "6: a_static = 46\\r\\n4: main_global = 44\\r\\n.*" - gdb_test "break [gdb_get_line_number "break here" ${testfile}.c]" \ - ".*Breakpoint.* at .*" gdb_test "continue" [multi_line \ "4: main_global = 44" \ "5: a_local = 45" \ "6: a_static = 46" \ - ] + ] "continue two" }} |