Hi,

This patch fixes mmapstress08 test case by limiting this test to run for x86 
architecture only due to it makes several assumptions about 4K page size etc, 
and I don't see the obvious way to make it work for non-x86 architectures.

Signed-off-by: CAI Qian <[EMAIL PROTECTED]>

--- ./testcases/kernel/mem/mmapstress/mmapstress08.c.orig       2008-12-11 
12:57:25.665135833 +0800
+++ testcases/kernel/mem/mmapstress/mmapstress08.c      2008-12-11 
13:12:54.752136637 +0800
@@ -43,6 +43,7 @@
 int TST_TOTAL = 1;
 extern int Tst_count;
 
+#if defined(__i386__) || defined(__x86_64__)
 int anyfail();
 void ok_exit();
 /*****  **      **      *****/
@@ -127,5 +128,14 @@
   return(0);
 }
 
+#else /* defined(__i386__) || defined(__x86_64__) */
+int
+main (void)
+{
+  tst_resm (TCONF, "Test is only applicable for IA-32 and x86-64.");
+  tst_exit ();
+}
+#endif
 /*****  **      **      *****/
 



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to