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 * Tests assertion 4 by emptying a signal set and querying it for 9 * a SIGABRT function. Sigmember should return a 0 indicating that 10 * the signal is not a member of the set. 11 */ 12 13 #include <stdio.h> 14 #include <signal.h> 15 #include "posixtest.h" 16 main(void)17int main(void) 18 { 19 sigset_t signalset; 20 21 if (sigemptyset(&signalset) == -1) { 22 perror("sigemptyset failed -- test aborted"); 23 return PTS_UNRESOLVED; 24 } 25 26 if (sigismember(&signalset, SIGABRT) != 0) { 27 printf("sigismember dit not return 0"); 28 return PTS_FAIL; 29 } 30 31 printf("Test PASSED\n"); 32 return PTS_PASS; 33 } 34