libc-testsuite - correctness and quality tests for libc implementations

correctness and quality tests for libc implementations
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--setjmp.c 4
1 files changed, 4 insertions, 0 deletions
diff --git a/setjmp.c b/setjmp.c
index 6728bef..b740be5 100644
--- a/setjmp.c
+++ b/setjmp.c
@@ -40,6 +40,10 @@ int test_setjmp(void)
sigprocmask(SIG_UNBLOCK, &set, &set);
oldset = set;
+ /* Improve the chances of catching failure of sigsetjmp to
+ * properly save the signal mask in the sigjmb_buf. */
+ memset(&sjb, -1, sizeof sjb);
+
if (!sigsetjmp(sjb, 1)) {
sigemptyset(&set);
sigaddset(&set, SIGUSR1);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月02日 01:13:48 +0000

AltStyle によって変換されたページ (->オリジナル) /