1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright (c) International Business Machines Corp., 2001 4 */ 5 6 /*\ 7 * [Description] 8 * 9 * Test that we get an error using illegal signals. 10 */ 11 12 #include "tst_test.h" 13 14 static int sigs[] = { _NSIG + 1, SIGKILL, SIGSTOP }; 15 do_test(unsigned int n)16static void do_test(unsigned int n) 17 { 18 TST_EXP_FAIL2((long)signal(sigs[n], SIG_IGN), EINVAL); 19 } 20 21 static struct tst_test test = { 22 .tcnt = ARRAY_SIZE(sigs), 23 .test = do_test, 24 }; 25