Browse Source

tst-valloc: enable test, allow to be skipped

Waldemar Brodkorb 7 years ago
parent
commit
7e8a80ea44
2 changed files with 4 additions and 4 deletions
  1. 0 4
      test/malloc/Makefile.in
  2. 4 0
      test/malloc/tst-valloc.c

+ 0 - 4
test/malloc/Makefile.in

@@ -3,10 +3,6 @@
 
 TESTS_DISABLED := time_malloc
 
-ifneq ($(UCLIBC_SUSV2_LEGACY),y)
-TESTS_DISABLED += tst-valloc
-endif
-
 ifneq ($(UCLIBC_HAS_OBSTACK),y)
 TESTS_DISABLED += tst-obstack
 endif

+ 4 - 0
test/malloc/tst-valloc.c

@@ -6,6 +6,7 @@
 int
 main (void)
 {
+#if __UCLIBC_SUSV2_LEGACY__
   char *p;
   int pagesize = getpagesize ();
   int i;
@@ -20,4 +21,7 @@ main (void)
     }
 
   return 0;
+#else
+  return 23;
+#endif
 }