1 /*
2 * Copyright (c) 2002, Intel Corporation. All rights reserved.
3 * Created by: salwan.searty REMOVE-THIS AT intel DOT com
4 * This file is licensed under the GPL license. For the full content
5 * of this license, see the COPYING file at the top level of this
6 * source tree.
7
8 *
9 * Test that the results are undefined if sigismember() is called without
10 * first calling sigemptyset() or sigfillset().
11 * Any results are acceptable; however, the system should not crash, hang,
12 * or do something equally as harmful.
13 */
14
15 #include <stdio.h>
16 #include <signal.h>
17 #include <posixtest.h>
18
main()19 int main()
20 {
21 sigset_t signalset;
22 int returnval;
23 returnval = sigismember(&signalset, SIGALRM);
24
25 #ifdef DEBUG
26 printf("sigismember returned returnval\n");
27 #endif
28
29 /*
30 * If we made it here, the test case passes.
31 */
32 return PTS_PASS;
33 }
34