Hi,

I have noticed fail and fixed.
1. rt_sigsuspend01.c


Please find the patch below and as attachment.

Best regards
Naresh Kamboju

Signed-off-by: Naresh Kamboju < [email protected] >

diff -Naurb a/testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c
b/testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c
--- a/testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c 2009-05-21
23:58:46.000000000 +0530
+++ b/testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c 2009-06-17
23:09:40.000000000 +0530
@@ -142,13 +142,13 @@
                        struct sigaction act, oact;
                        act.sa_handler = sig_handler;
                        
-                       TEST(syscall(174, SIGALRM, &act, &oact, 8));
+                       TEST(syscall(__NR_rt_sigaction, SIGALRM, &act, &oact, 
8));
                        if(TEST_RETURN == -1){
                                tst_resm(TFAIL,"rt_sigaction() Failed, errno=%d 
:
%s",TEST_ERRNO, strerror(TEST_ERRNO));
                                cleanup();
                                tst_exit();
                        }
-                       TEST(syscall(175, SIG_UNBLOCK, 0, &set1, 8));
+                       TEST(syscall(__NR_rt_sigprocmask, SIG_UNBLOCK, 0, 
&set1, 8));
                        if(TEST_RETURN == -1){
                                tst_resm(TFAIL,"rt_sigprocmask() Failed, 
errno=%d :
%s",TEST_ERRNO, strerror(TEST_ERRNO));
                                cleanup();
@@ -157,10 +157,10 @@
                        
                        TEST(alarm(5));
                        int result;
-                       TEST(result = syscall(179, &set, 8));
+                       TEST(result = syscall(__NR_rt_sigsuspend, &set, 8));
                        TEST(alarm(0));
                        if((result == -1) && (TEST_ERRNO != EINTR)){
-                               TEST(syscall(175, SIG_UNBLOCK, 0, &set2, 8));
+                               TEST(syscall(__NR_rt_sigprocmask, SIG_UNBLOCK, 
0, &set2, 8));
                                if(TEST_RETURN == -1){
                                        tst_resm(TFAIL,"rt_sigprocmask() 
Failed, errno=%d :
%s",TEST_ERRNO, strerror(TEST_ERRNO));
                                        cleanup();

Attachment: ltp-fix-rt_sigsuspend.patch
Description: Binary data

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to