projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
skip known math failures
[libc-test]
/
src
/
functional
/
setjmp.c
diff --git
a/src/functional/setjmp.c
b/src/functional/setjmp.c
index
adba1a6
..
7ba09d3
100644
(file)
--- a/
src/functional/setjmp.c
+++ b/
src/functional/setjmp.c
@@
-11,7
+11,7
@@
int main(void)
jmp_buf jb;
sigjmp_buf sjb;
volatile sigset_t oldset;
jmp_buf jb;
sigjmp_buf sjb;
volatile sigset_t oldset;
- sigset_t set;
+ sigset_t set
, set2
;
if (!setjmp(jb)) {
x = 1;
if (!setjmp(jb)) {
x = 1;
@@
-29,8
+29,8
@@
int main(void)
sigemptyset(&set);
sigaddset(&set, SIGUSR1);
sigemptyset(&set);
sigaddset(&set, SIGUSR1);
- sigprocmask(SIG_UNBLOCK, &set, &set);
- oldset = set;
+ sigprocmask(SIG_UNBLOCK, &set, &set
2
);
+ oldset = set
2
;
/* Improve the chances of catching failure of sigsetjmp to
* properly save the signal mask in the sigjmb_buf. */
/* Improve the chances of catching failure of sigsetjmp to
* properly save the signal mask in the sigjmb_buf. */
@@
-43,13
+43,13
@@
int main(void)
siglongjmp(sjb, 1);
}
set = oldset;
siglongjmp(sjb, 1);
}
set = oldset;
- sigprocmask(SIG_SETMASK, &set, &set);
- TEST(sigismember(&set, SIGUSR1)==0, "siglongjmp failed to restore mask\n");
+ sigprocmask(SIG_SETMASK, &set, &set
2
);
+ TEST(sigismember(&set
2
, SIGUSR1)==0, "siglongjmp failed to restore mask\n");
sigemptyset(&set);
sigaddset(&set, SIGUSR1);
sigemptyset(&set);
sigaddset(&set, SIGUSR1);
- sigprocmask(SIG_UNBLOCK, &set, &set);
- oldset = set;
+ sigprocmask(SIG_UNBLOCK, &set, &set
2
);
+ oldset = set
2
;
if (!sigsetjmp(sjb, 0)) {
sigemptyset(&set);
if (!sigsetjmp(sjb, 0)) {
sigemptyset(&set);
@@
-58,8
+58,8
@@
int main(void)
siglongjmp(sjb, 1);
}
set = oldset;
siglongjmp(sjb, 1);
}
set = oldset;
- sigprocmask(SIG_SETMASK, &set, &set);
- TEST(sigismember(&set, SIGUSR1)==1, "siglongjmp incorrectly restored mask\n");
+ sigprocmask(SIG_SETMASK, &set, &set
2
);
+ TEST(sigismember(&set
2
, SIGUSR1)==1, "siglongjmp incorrectly restored mask\n");
return t_status;
}
return t_status;
}