From f334556476cd9c33d3a9d8df9af0dfae798dc9ae Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 17 Mar 2015 20:54:38 +0100 Subject: test: Tweak arc4random exclusion Signed-off-by: Bernhard Reutner-Fischer --- test/stdlib/Makefile.in | 4 +++- test/stdlib/testarc4random.c | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/stdlib') 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; } -- cgit v1.2.3 From 78e6494c2cf677d170a5c4ce0f46d152d478abc0 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 18 Mar 2015 22:32:13 +0100 Subject: test: skip arc4random on glibc Signed-off-by: Bernhard Reutner-Fischer --- test/stdlib/Makefile.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/stdlib') diff --git a/test/stdlib/Makefile.in b/test/stdlib/Makefile.in index f39941dc2..df3440a39 100644 --- a/test/stdlib/Makefile.in +++ b/test/stdlib/Makefile.in @@ -7,9 +7,12 @@ DODIFF_teston_exit := 1 DODIFF_teststrtol := 1 TESTS_DISABLED := +GLIBC_TESTS_DISABLED := ifeq ($(UCLIBC_HAS_PTY),) TESTS_DISABLED += ptytest endif ifeq ($(UCLIBC_HAS_ARC4RANDOM),) TESTS_DISABLED += testarc4random +else +GLIBC_TESTS_DISABLED += testarc4random endif -- cgit v1.2.3 From 9e552e6a2d836698834d2bf887dbf1806172729f Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 25 Mar 2015 23:59:52 +0100 Subject: test: tweaks Fix arc4random exclusion for real. Silence warning about missing prototype for external helper-function in tst-scandir Signed-off-by: Bernhard Reutner-Fischer --- test/stdlib/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/stdlib') diff --git a/test/stdlib/Makefile.in b/test/stdlib/Makefile.in index df3440a39..e1cbccfca 100644 --- a/test/stdlib/Makefile.in +++ b/test/stdlib/Makefile.in @@ -11,8 +11,9 @@ GLIBC_TESTS_DISABLED := ifeq ($(UCLIBC_HAS_PTY),) TESTS_DISABLED += ptytest endif + ifeq ($(UCLIBC_HAS_ARC4RANDOM),) TESTS_DISABLED += testarc4random else -GLIBC_TESTS_DISABLED += testarc4random +GLIBC_TESTS_DISABLED += testarc4random_glibc endif -- cgit v1.2.3