sbrk has arguments of type intptr_t, which is long in on x86_64.
There is following line in mmapstress03:
if (sbrk(-NUM_SEGS * pagesize) == NEG1) {
here the type of argument is int, because of constant NUM_SEGS, and this test
fails here on x86_64. So let constants will be long.
Index: testcases/kernel/mem/mmapstress/mmapstress03.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/mem/mmapstress/mmapstress03.c,v
retrieving revision 1.3
diff -u -p -r1.3 mmapstress03.c
--- testcases/kernel/mem/mmapstress/mmapstress03.c 15 Feb 2006 06:34:46
-0000
1.3
+++ testcases/kernel/mem/mmapstress/mmapstress03.c 2 Dec 2008 08:54:07
-0000
@@ -58,11 +58,11 @@ int anyfail();
void ok_exit();
/***** ** ** *****/
-#define AS_SVSM_VSEG_MAX 48U
-#define AS_SVSM_MMAP_MAX 16U
+#define AS_SVSM_VSEG_MAX 48UL
+#define AS_SVSM_MMAP_MAX 16UL
-#define EXTRA_VSEGS 2
+#define EXTRA_VSEGS 2L
#define NUM_SEGS (AS_SVSM_VSEG_MAX + EXTRA_VSEGS)
#define ERROR(M) (void)fprintf(stderr, "%s: errno = %d: " M "\n", progname, \
errno)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list