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 12#include <stdio.h> 13#include <signal.h> 14#include "posixtest.h" 15 16int main() { 17 18 sigset_t signalset; 19 20 if (sigfillset(&signalset) == -1) { 21 perror("sigfillset failed -- test aborted"); 22 return PTS_UNRESOLVED; 23 } 24 25 if (sigismember(&signalset, SIGABRT) != 1) { 26 #ifdef DEBUG 27 printf("sigismember didn't returned a 1 even though sigfillset was just called\n"); 28 #endif 29 return PTS_FAIL; 30 } 31 32 printf("sigismember passed\n"); 33 return PTS_PASS; 34} 35