• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2002, Intel Corporation. All rights reserved.
3  * Created by:  julie.n.fleischer 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  *  Test that the raise(<signal>) function sends a non-zero value on
9  *  unsuccessful completion.
10  *  1) Raise an invalid signal.
11  *  2) Verify a non-zero value is returned.
12  */
13 
14 #include <signal.h>
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <errno.h>
18 #include "posixtest.h"
19 
main(void)20 int main(void)
21 {
22 	if (raise(10000) == 0) {
23 		printf("Incorrectly returned 0\n");
24 		printf("Test FAILED\n");
25 		return PTS_FAIL;
26 	}
27 
28 	printf("Test PASSED\n");
29 	return PTS_PASS;
30 }
31