diff options
author | Tom de Vries <tdevries@suse.de> | 2024-11-22 13:37:24 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-11-22 13:37:24 +0100 |
commit | b200576fa04421d4c8e8da3082afcbfb986aac45 (patch) | |
tree | 17ed614912dad99518ad6f8e81ff10b3303526c1 /gdb/python/python.c | |
parent | c4df8ad79cc62509af85311a6e03806d94f6c75b (diff) | |
download | gdb-b200576fa04421d4c8e8da3082afcbfb986aac45.zip gdb-b200576fa04421d4c8e8da3082afcbfb986aac45.tar.gz gdb-b200576fa04421d4c8e8da3082afcbfb986aac45.tar.bz2 |
[gdb/testsuite] Fix gdb.base/bg-exec-sigint-bp-cond.exp for signal merging
The test-case gdb.base/bg-exec-sigint-bp-cond.exp sends 10 SIGINTS to gdb, and
counts whether 10 have arrived.
Occasionally, less than 10 arrive due to signal merging [1].
This is more likely to happen when building gdb with -fsanitize=thread.
Fix this by instead, sending one SIGINT at a time, and waiting for it to
arrive.
This still makes the test-case fail if the fix fixing the PR that the
test-case was introduced for is reverted.
Tested on aarch64-linux and x86_64-linux.
PR testsuite/32329
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32329
[1] https://www.gnu.org/software/libc/manual/html_node/Merged-Signals.html
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions