Hi all,

I have  executed the latest LTP test suite (ltp-full-20070930)
on ARM OSK target having 32MB memory and noticed following 
test cases failed.

1. page01      1  FAIL  :  Test failed

  In this test case memory size is assigned
  memory_size = 256 * 1024 (256 KB)
  and it allocates memory for each fork process
  malloc(memory_size*sizeof(int));

  It exceeds 32 MB and the test FAIL.  For such low memory targets
  memory_size should be less than 256 KB. Below change will fix this
  issue for low memory targets.


ltp-full-20070930/testcases/kernel/mem/page/page01.c
-               memory_size = 256 * 1024;
+               memory_size = 32 * 1024;

--------------------------------------------------------------------

2. shmt09      3  FAIL  :  Error: shmat Failed, shmid = 134938625, errno
= 22

   shmat() system call is supposed to attach the memory segment at the
address
   rounded to NEAREST multiple of SHMLBA which is PAGE_SIZE of  the
system.
   Here the testcase is checking the term NEAREST. In targets having low
memory
   the system call is attaching the memory segment at the address which
is a
   multiple of PAGE_SIZE but it is not nearest.

   Below changes will fix this issue for low memory targets.


ltp-full-20070930/testcases/kernel/mem/shmt/shmt09.c

+#elif defined __arm__
+#define INCREMENT               32768   /* 32kb */
        }
+#elif  defined __arm__
+        vp = (void *)((char *)sbrk(0) + 32 * K_1);

-#if defined (__ia64__) || defined(__mips__) || defined(__hppa__)
+#if defined (__ia64__) || defined(__mips__) || defined(__hppa__) ||
defined(__arm__)

------------------------------------------------------------------------

3. shmat01     2  FAIL  :  shared memory address is not correct

   This is same as above test and the patch to fix this issue for low
memory
   targets is given below.


ltp-full-20070930/testcases/kernel/syscalls/ipc/shmat/shmat01.c

 #elif defined __arm__
-#define UNALIGNED      0x28ffeeee
+#define UNALIGNED      0x5ff00eee

------------------------------------------------------------------------


The above changes works well for my 32MB ARM OSK target and the attached

file includes the patch for above fixes.

Please let me know your opinion about this.

Regards,
Ganesan GV


-------------------------------------------------------------------
This email is confidential and intended only for the use of the individual or 
entity named above and may contain information that is privileged. If you are 
not the intended recipient, you are notified that any dissemination, 
distribution or copying of this email is strictly prohibited. If you have 
received this email in error, please notify us immediately by return email or 
telephone and destroy the original message. - This mail is sent via Sony Asia 
Pacific Mail Gateway.
-------------------------------------------------------------------

Attachment: ltp-test-fix.patch
Description: ltp-test-fix.patch

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to