summaryrefslogtreecommitdiff
path: root/test/stdlib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-03-17 20:54:38 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-03-17 21:00:51 +0100
commitf334556476cd9c33d3a9d8df9af0dfae798dc9ae (patch)
treecb2dd4ee416832ea051e51f4b22a2497d07868d9 /test/stdlib
parent8ee422cffbfd3e2a16265fe6680a8dde2f5e58fe (diff)
test: Tweak arc4random exclusion
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test/stdlib')
-rw-r--r--test/stdlib/Makefile.in4
-rw-r--r--test/stdlib/testarc4random.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/stdlib/Makefile.in b/test/stdlib/Makefile.in
index 53e5a7280..f39941dc2 100644
--- a/test/stdlib/Makefile.in
+++ b/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
diff --git a/test/stdlib/testarc4random.c b/test/stdlib/testarc4random.c
index 4d773aa4b..14ff1cc36 100644
--- a/test/stdlib/testarc4random.c
+++ b/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;
}