diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2021-11-19 17:33:27 +0000 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2021-11-21 16:00:13 +0000 |
commit | b4d069fbeaef8ea8891c13992789e63c51f73a42 (patch) | |
tree | c0b35324c1d16993f3586e3790280cad7d1cd716 /gdb | |
parent | bbda248c504815990c07c8a9c411ae6c124d7c4b (diff) | |
download | binutils-b4d069fbeaef8ea8891c13992789e63c51f73a42.zip binutils-b4d069fbeaef8ea8891c13992789e63c51f73a42.tar.gz binutils-b4d069fbeaef8ea8891c13992789e63c51f73a42.tar.bz2 |
gdb/testsuite: Remove duplicates in gdb.base/catch-signal.exp
When running the testsuite I have the following:
Running .../gdb/testsuite/gdb.base/catch-signal.exp ...
DUPLICATE: gdb.base/catch-signal.exp: SIGHUP: continue
DUPLICATE: gdb.base/catch-signal.exp: SIGHUP: continue
DUPLICATE: gdb.base/catch-signal.exp: 1: continue
DUPLICATE: gdb.base/catch-signal.exp: 1: continue
DUPLICATE: gdb.base/catch-signal.exp: SIGHUP SIGUSR2: continue
DUPLICATE: gdb.base/catch-signal.exp: SIGHUP SIGUSR2: continue
This patch removes DUPLICATE in gdb.base/catch-signal.exp by explicitly
giving names to the offending 'gdb_test "continue"' statements to make
them distinct.
Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.base/catch-signal.exp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/catch-signal.exp b/gdb/testsuite/gdb.base/catch-signal.exp index 00cad1b..6569e0c 100644 --- a/gdb/testsuite/gdb.base/catch-signal.exp +++ b/gdb/testsuite/gdb.base/catch-signal.exp @@ -39,7 +39,7 @@ proc test_catch_signal {signame} { gdb_test "handle SIGHUP nostop noprint pass" \ "SIGHUP.*No.*No.*Yes.*" gdb_test "catch signal" "Catchpoint .*" - gdb_test "continue" "Catchpoint .*" + gdb_test "continue" "Catchpoint .*" "continue to first HUP" # Now ensure that the "pass" setting worked, and also that we did not # see gdb's SIGTRAP. @@ -52,7 +52,7 @@ proc test_catch_signal {signame} { gdb_breakpoint ${srcfile}:[gdb_get_line_number "second HUP"] gdb_continue_to_breakpoint "second HUP" gdb_test "catch signal $signame" "Catchpoint .*" - gdb_test "continue" "Catchpoint .*" + gdb_test "continue" "Catchpoint .*" "continue to catch signal $signame" delete_breakpoints # Catch just SIGUSR1 -- but it isn't sent. @@ -83,7 +83,6 @@ proc test_catch_signal {signame} { y gdb_test "catch signal SIGINT" "Catchpoint .*" gdb_test "continue" "Catchpoint .* SIGINT.*" - } } |