1 /* 2 * Copyright (c) 2003, 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 Simply, if sigignore returns a 0 here, test passes. 9 10 */ 11 12 13 #include <stdio.h> 14 #include <signal.h> 15 #include "posixtest.h" 16 main(void)17int main(void) 18 { 19 sigset_t set; 20 sigaddset(&set, SIGABRT); 21 22 if (sigprocmask(SIG_SETMASK, &set, NULL) != 0) { 23 perror("sigprocmask failed -- returned -- test aborted"); 24 return PTS_FAIL; 25 } 26 printf("Test PASSED\n"); 27 return PTS_PASS; 28 } 29