summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-getrandom.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/tests/test-getrandom.c b/tests/test-getrandom.c
index f4a31c62d8..0e9fbb0c26 100644
--- a/tests/test-getrandom.c
+++ b/tests/test-getrandom.c
@@ -79,24 +79,7 @@ main (void)
ASSERT (errno == ENOSYS || errno == EAGAIN
|| errno == EINVAL /* Solaris */);
else
- {
- ASSERT (ret > 0);
- /* This assertion fails on
- - GNU/Hurd,
- - Mac OS X,
- - GNU/kFreeBSD, FreeBSD 12.0,
- - OpenBSD 6.5,
- - Minix 3.3,
- - AIX 7.1,
- - Haiku,
- - native Windows.
- This indicates that the function, when called with GRND_RANDOM flag,
- probably does not return truly random numbers, but instead uses a
- pseudo-random number generator. */
-#if !(defined __GNU__ || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD_kernel__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __minix || defined _AIX || defined __HAIKU__ || (defined _WIN32 && ! defined __CYGWIN__))
- ASSERT (ret < (ssize_t) sizeof (large_buf));
-#endif
- }
+ ASSERT (ret > 0);
if (getrandom (buf1, 1, 0) < 1)
if (getrandom (buf1, 1, GRND_RANDOM) < 1)