From: Nicolas J. <nj...@pa...> - 2009-06-17 21:42:37
|
On Thu, Jun 18, 2009 at 01:50:12AM +0530, naresh kamboju wrote: > Hi, > > I have noticed following failures and fixed. > 1. rt_sigprocmask01.c > 2. rt_sigprocmask02.c [...] > diff -Naurb a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c > b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c > --- a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c 2009-05-21 > 23:53:00.000000000 +0530 > +++ b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c 2009-06-17 > 23:06:24.000000000 +0530 > @@ -163,14 +163,14 @@ > > /* call rt_sigaction() */ > act.sa_handler = sig_handler; > - TEST(syscall(174, 33, &act, &oact, 8)); > + TEST(syscall(__NR_tkill, 33, &act, &oact, 8)); This one looks wrong ... Shouldn't it be __NR_rt_sigaction ? > if(TEST_RETURN != 0){ > tst_resm(TFAIL,"Call to rt_sigaction() Failed, errno=%d : > %s",TEST_ERRNO, strerror(TEST_ERRNO)); > cleanup(); > tst_exit(); > } > /* call rt_sigprocmask() to block signal#33 */ > - TEST(syscall(175, SIG_BLOCK, &set, &oset, 8)); > + TEST(syscall(__NR_rt_sigprocmask, SIG_BLOCK, > &set, &oset, 8)); > if(TEST_RETURN == -1){ > tst_resm(TFAIL,"Call to rt_sigprocmask()**** Failed, errno=%d : > %s",TEST_ERRNO, strerror(TEST_ERRNO)); > cleanup(); > @@ -192,7 +192,7 @@ > } > else { > /* call rt_sigpending() */ > - TEST(syscall(176, &oset, 8)); > + TEST(syscall(__NR_rt_sigpending, &oset, 8)); > if(TEST_RETURN == -1){ > tst_resm(TFAIL,"call rt_sigpending() failed, errno=%d : > %s",TEST_ERRNO, strerror(TEST_ERRNO)); > cleanup(); > @@ -205,7 +205,7 @@ > tst_exit(); > } > /* call rt_sigprocmask() to unblock signal#33 */ > - TEST(syscall(175, SIG_UNBLOCK, &set, &oset, 8)); > + TEST(syscall(__NR_rt_sigprocmask, SIG_UNBLOCK, &set, &oset, 8)); > if(TEST_RETURN == -1){ > tst_resm(TFAIL,"Call to rt_sigprocmask() Failed, errno=%d : > %s",TEST_ERRNO, strerror(TEST_ERRNO)); > cleanup(); > diff -Naurb a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask02.c > b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask02.c > --- a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask02.c 2009-05-21 > 23:54:15.000000000 +0530 > +++ b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask02.c 2009-06-17 > 23:30:42.000000000 +0530 > @@ -176,7 +176,7 @@ > > for(i=0; i<test_count; i++) > { > - TEST(syscall(175, SIG_BLOCK, &s, test_cases[i].ss, test_cases[i].sssize)); > + TEST(syscall(__NR_rt_sigprocmask, SIG_BLOCK, &s, > test_cases[i].ss, test_cases[i].sssize)); > if(TEST_RETURN == 0){ > tst_resm(TFAIL,"Call to rt_sigprocmask()succeeded,but should > failed, errno=%d : %s",TEST_ERRNO, strerror(TEST_ERRNO)); > fail++; -- Nicolas Joly Biological Software and Databanks. Institut Pasteur, Paris. |