Browse Source

test: Tweak arc4random exclusion

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 9 years ago
parent
commit
f334556476
2 changed files with 3 additions and 3 deletions
  1. 3 1
      test/stdlib/Makefile.in
  2. 0 2
      test/stdlib/testarc4random.c

+ 3 - 1
test/stdlib/Makefile.in

@@ -10,4 +10,6 @@ TESTS_DISABLED :=
 ifeq ($(UCLIBC_HAS_PTY),)
 TESTS_DISABLED += ptytest
 endif
-
+ifeq ($(UCLIBC_HAS_ARC4RANDOM),)
+TESTS_DISABLED += testarc4random
+endif

+ 0 - 2
test/stdlib/testarc4random.c

@@ -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;
 }