[git commit] test: Tweak arc4random exclusion
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Mar 17 20:00:51 UTC 2015
commit: http://git.uclibc.org/uClibc/commit/?id=f334556476cd9c33d3a9d8df9af0dfae798dc9ae
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
test/stdlib/Makefile.in | 4 +++-
test/stdlib/testarc4random.c | 2 --
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/stdlib/Makefile.in b/test/stdlib/Makefile.in
index 53e5a72..f39941d 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 4d773aa..14ff1cc 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;
}
More information about the uClibc-cvs
mailing list