All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [FIX PATCH] ltp-ssetmask
@ 2009-06-17 20:22 naresh kamboju
  0 siblings, 0 replies; only message in thread
From: naresh kamboju @ 2009-06-17 20:22 UTC (permalink / raw)
  To: ltp-list
  Cc: maxin john, brinda_mn, Manas Kumar Nayak, Oleg Nesterov, rohit.170309

[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]

Hi,

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


Please find the patch below and as attachment.

Best regards
Naresh Kamboju

Signed-off-by: Naresh Kamboju < naresh.kernel@gmail.com >

diff -Naurb a/testcases/kernel/syscalls/ssetmask/ssetmask01.c
b/testcases/kernel/syscalls/ssetmask/ssetmask01.c
--- a/testcases/kernel/syscalls/ssetmask/ssetmask01.c	2009-05-22
00:09:52.000000000 +0530
+++ b/testcases/kernel/syscalls/ssetmask/ssetmask01.c	2009-06-17
23:21:55.000000000 +0530
@@ -125,14 +125,14 @@
         for (lc = 0; TEST_LOOPING(lc); ++lc) {
                 Tst_count = 0;
                 for (testno = 0; testno < TST_TOTAL; ++testno) {
-		     syscall(69,SIGALRM);
-                     TEST(syscall(68));     //call ssetmask()
+		     syscall(__NR_ssetmask,SIGALRM);
+                     TEST(syscall(__NR_sgetmask));     //call ssetmask()
                      if(TEST_RETURN != SIGALRM) {
                  	   tst_resm(TFAIL, "%s failed - errno = %d : %s",
TCID, TEST_ERRNO, strerror(TEST_ERRNO));
                            cleanup();
 			   tst_exit();
                      }
-                     TEST(syscall(69,SIGUSR1));     //call ssetmask()
+                     TEST(syscall(__NR_ssetmask,SIGUSR1));     //call
ssetmask()
                      if(TEST_RETURN != SIGALRM) {
                  	   tst_resm(TFAIL, "%s failed - errno = %d : %s",
TCID, TEST_ERRNO, strerror(TEST_ERRNO));
                            cleanup();

[-- Attachment #2: ltp-fix-ssetmask.patch --]
[-- Type: application/octet-stream, Size: 1262 bytes --]

diff -Naurb a/testcases/kernel/syscalls/ssetmask/ssetmask01.c b/testcases/kernel/syscalls/ssetmask/ssetmask01.c
--- a/testcases/kernel/syscalls/ssetmask/ssetmask01.c	2009-05-22 00:09:52.000000000 +0530
+++ b/testcases/kernel/syscalls/ssetmask/ssetmask01.c	2009-06-17 23:21:55.000000000 +0530
@@ -125,14 +125,14 @@
         for (lc = 0; TEST_LOOPING(lc); ++lc) {
                 Tst_count = 0;
                 for (testno = 0; testno < TST_TOTAL; ++testno) {
-		     syscall(69,SIGALRM);
-                     TEST(syscall(68));     //call ssetmask()
+		     syscall(__NR_ssetmask,SIGALRM);
+                     TEST(syscall(__NR_sgetmask));     //call ssetmask()
                      if(TEST_RETURN != SIGALRM) {
                  	   tst_resm(TFAIL, "%s failed - errno = %d : %s", TCID, TEST_ERRNO, strerror(TEST_ERRNO));
                            cleanup();
 			   tst_exit();
                      }
-                     TEST(syscall(69,SIGUSR1));     //call ssetmask()
+                     TEST(syscall(__NR_ssetmask,SIGUSR1));     //call ssetmask()
                      if(TEST_RETURN != SIGALRM) {
                  	   tst_resm(TFAIL, "%s failed - errno = %d : %s", TCID, TEST_ERRNO, strerror(TEST_ERRNO));
                            cleanup();

[-- Attachment #3: Type: text/plain, Size: 332 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-17 20:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 20:22 [LTP] [FIX PATCH] ltp-ssetmask naresh kamboju

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.