strace/tests/sigaltstack.c
Dmitry V. Levin 9c8654e3e0 tests/sigaltstack.c: use libtests
* tests/sigaltstack.c (main): Use perror_msg_and_skip.
2016-01-05 23:37:01 +00:00

16 lines
248 B
C

#include "tests.h"
#include <signal.h>
int
main(void)
{
stack_t ss = {
.ss_sp = (void *) 0xbaadf00d,
.ss_flags = SS_DISABLE,
.ss_size = 0xdeadbeef
};
if (sigaltstack(&ss, (stack_t *) 0))
perror_msg_and_skip("sigaltstack");
return 0;
}