1 /* Test sig*set functions. */
6 #define TEST_FUNCTION do_test ()
16 printf ("%s (sig = %d): %m\n", #call, sig); \
23 TRY (sigemptyset (&set
) != 0);
26 int max_sig
= SIGRTMAX
;
28 int max_sig
= NSIG
- 1;
31 for (sig
= 1; sig
<= max_sig
; ++sig
)
33 TRY (sigismember (&set
, sig
) != 0);
34 TRY (sigaddset (&set
, sig
) != 0);
35 TRY (sigismember (&set
, sig
) == 0);
36 TRY (sigdelset (&set
, sig
) != 0);
37 TRY (sigismember (&set
, sig
) != 0);
43 #include "../test-skeleton.c"