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 3 by filling a signal set and arbitrarily querying 9 * it for a SIGABRT function. Sigmember should return a 1. 10 */ 11 #include <stdio.h> 12 #include <signal.h> 13 #include "posixtest.h" 14 main(void)15int main(void) 16 { 17 sigset_t signalset; 18 19 if (sigfillset(&signalset) == -1) { 20 perror("sigfillset failed -- test aborted"); 21 return PTS_UNRESOLVED; 22 } 23 24 if (sigismember(&signalset, SIGABRT) != 1) { 25 printf("sigismember doesn't confirm the signal was set\n"); 26 return PTS_FAIL; 27 } 28 29 printf("Test PASSED\n"); 30 return PTS_PASS; 31 } 32