瀏覽代碼

test: Tweak arc4random exclusion

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 9 年之前
父節點
當前提交
f334556476
共有 2 個文件被更改,包括 3 次插入3 次删除
  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;
 }