OSDN Git Service

test: Tweak arc4random exclusion
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 17 Mar 2015 19:54:38 +0000 (20:54 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 17 Mar 2015 20:00:51 +0000 (21:00 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
test/stdlib/Makefile.in
test/stdlib/testarc4random.c

index 53e5a72..f39941d 100644 (file)
@@ -10,4 +10,6 @@ TESTS_DISABLED :=
 ifeq ($(UCLIBC_HAS_PTY),)
 TESTS_DISABLED += ptytest
 endif
-
+ifeq ($(UCLIBC_HAS_ARC4RANDOM),)
+TESTS_DISABLED += testarc4random
+endif
index 4d773aa..14ff1cc 100644 (file)
@@ -3,10 +3,8 @@
 
 int main(void)
 {
-#ifdef __UCLIBC_HAS_ARC4RANDOM__
        int random_number;
        random_number = arc4random() % 65536;
        printf("%d\n", random_number);
-#endif
        return 0;
 }