1 #include <signal.h> 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <unistd.h> 5 #include "posixtest.h" 6 7 /* 8 * Copyright (c) 2002, Intel Corporation. All rights reserved. 9 * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 10 * This file is licensed under the GPL license. For the full content 11 * of this license, see the COPYING file at the top level of this 12 * source tree. 13 14 * Test that if the signal is the null signal (0), no signal is sent. 15 * 1) Call kill on the current process with the null signal. 16 * 2) If process is still functional after kill() is called, consider 17 * the test a pass (most likely no signal was sent). 18 */ 19 20 int main(void) 21 { 22 if (kill(getpid(), 0) != 0) { 23 printf("Could not call kill with sig = 0\n"); 24 return PTS_FAIL; 25 } 26 27 printf("Test PASSED\n"); 28 return PTS_PASS; 29 } 30