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 17int main() { 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 #ifdef DEBUG 28 printf("sigismember did not return a 0 even though sigemptyset was just called\n"); 29 #endif 30 return PTS_FAIL; 31 } 32 33 printf("sigismember passed\n"); 34 return PTS_PASS; 35} 36