projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regression test for musl built with broken gcc-4.9 bug #61144
[libc-test]
/
src
/
functional
/
setjmp.c
diff --git
a/src/functional/setjmp.c
b/src/functional/setjmp.c
index
7bd534b
..
0a9e4e6
100644
(file)
--- a/
src/functional/setjmp.c
+++ b/
src/functional/setjmp.c
@@
-1,13
+1,9
@@
-#include <stdio.h>
-#include <unistd.h>
-#include <errno.h>
#include <string.h>
#include <signal.h>
#include <setjmp.h>
#include "test.h"
#include <string.h>
#include <signal.h>
#include <setjmp.h>
#include "test.h"
-#define TEST(c, ...) ((c) ? 1 : (error(#c" failed: " __VA_ARGS__),0))
-#define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno)))
+#define TEST(c, ...) ((c) ? 1 : (t_error(#c" failed: " __VA_ARGS__),0))
int main(void)
{
int main(void)
{
@@
-50,5
+46,5
@@
int main(void)
sigprocmask(SIG_SETMASK, &set, &set);
TEST(sigismember(&set, SIGUSR1)==0, "siglongjmp failed to restore mask\n");
sigprocmask(SIG_SETMASK, &set, &set);
TEST(sigismember(&set, SIGUSR1)==0, "siglongjmp failed to restore mask\n");
- return t
est
_status;
+ return t_status;
}
}