tests/malloc: reduce maximum memory size on 32-bit platforms
authorReto Achermann <reto.achermann@inf.ethz.ch>
Wed, 17 Jul 2019 07:43:16 +0000 (09:43 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Wed, 17 Jul 2019 07:43:16 +0000 (09:43 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

usr/tests/malloc/main.c

index cda831e..cde7d01 100644 (file)
@@ -37,7 +37,11 @@ int main(void)
 
     test_malloc(2*1024*1024ULL);
 
-    test_malloc(500*1024*1024ULL);
+#if (UINTPTR_MAX == UINT64_MAX)
+    test_malloc(512*1024*1024ULL);
+#else
+    test_malloc(400*1024*1024ULL); 
+#endif
 
     printf("malloctest done.\n");
     return 0;