Hi,

I have noticed following failures and fixed.
1. set_tid_address01.c
2. set_tid_address02.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/set_thread_area/set_thread_area01.c
b/testcases/kernel/syscalls/set_thread_area/set_thread_area01.c
--- a/testcases/kernel/syscalls/set_thread_area/set_thread_area01.c     
2009-05-22
00:00:29.000000000 +0530
+++ b/testcases/kernel/syscalls/set_thread_area/set_thread_area01.c     
2009-06-17
23:13:22.000000000 +0530
@@ -145,7 +145,7 @@
          * This call to get_thread_area function should be sucessful.
          */

-                     TEST(result = syscall(244, &u_info));     //call
get_thread_area()
+                     TEST(result = syscall(__NR_get_thread_area,
&u_info));     //call get_thread_area()
                      if(TEST_RETURN == 0) {
                        tst_resm(TPASS, "get_thread_area call succeeded");
                      }
@@ -160,7 +160,7 @@
          * This call to set_thread_area function should be sucessful.
          */

-                     TEST(result = syscall(243, &u_info));     //call
set_thread_area()
+                     TEST(result = syscall(__NR_set_thread_area,
&u_info));     //call set_thread_area()
                      if(TEST_RETURN == 0) {
                        tst_resm(TPASS, "set_thread_area call succeeded");
                      }
diff -Naurb a/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c
b/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c
--- a/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c     
2009-05-22
00:01:38.000000000 +0530
+++ b/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c     
2009-06-17
23:34:04.000000000 +0530
@@ -146,7 +146,7 @@
          * This call to get_thread_area function should be sucessful.
          */

-                     TEST(result = syscall(244, &u_info));     //call
get_thread_area()
+                     TEST(result = syscall(__NR_get_thread_area,
&u_info));     //call get_thread_area()
                      if(TEST_RETURN == -1) {
                           tst_resm(TFAIL, "call get_thraed_area() failed
with errno = %d ", TEST_ERRNO, strerror(TEST_ERRNO));
                            cleanup();
@@ -158,7 +158,7 @@
          * This call to set_thread_area function with invalid
entry_number should be FAILED.
          */

-                     TEST(result = syscall(243, &u_info));     //call
set_thread_area()
+                     TEST(result = syscall(__NR_set_thread_area,
&u_info));     //call set_thread_area()
                      if(TEST_RETURN == -1) {
                        if(TEST_ERRNO == EINVAL){
                                tst_resm(TPASS, "Call to set_thread_area call 
failed with invalid
entry_number result = %d (expected EINVAL)",TEST_ERRNO);
@@ -177,7 +177,7 @@
          * This call to set_thread_area function with an invalid
pointer should be FAILED with EFAULT.
          */

-                     TEST(result = syscall(243,(struct user_desc
*)-9));     //call set_thread_area()
+                     TEST(result =
syscall(__NR_set_thread_area,(struct user_desc *)-9));     //call
set_thread_area()
                      if(TEST_RETURN == -1) {
                        if(TEST_ERRNO == EFAULT){
                                tst_resm(TPASS, "Call to set_thread_area call 
with invalid
entry_number result = %d (got expected error EFAULT)",TEST_ERRNO);

Attachment: ltp-fix-set_thread_area.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