summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2017-07-14 20:37:28 +0300
committerRuslan Ermilov <ru@nginx.com>2017-07-14 20:37:28 +0300
commitca3b1b898a759441664e75ea0d1885e36b9defac (patch)
tree076b766e81615b1ae78e302ca9b313b89650fedc
parente134efcb9caf5f95d0e750a9af8a9d403aa131af (diff)
downloadunit-ca3b1b898a759441664e75ea0d1885e36b9defac.tar.gz
unit-ca3b1b898a759441664e75ea0d1885e36b9defac.tar.bz2
Restored arc4random unit test after 59fc46dd5e1d.
-rw-r--r--auto/unix16
-rw-r--r--test/nxt_lib_unit_test.c2
2 files changed, 0 insertions, 18 deletions
diff --git a/auto/unix b/auto/unix
index 18256007..59c7f68a 100644
--- a/auto/unix
+++ b/auto/unix
@@ -3,22 +3,6 @@
# Copyright (C) NGINX, Inc.
-nxt_feature="arc4random()"
-nxt_feature_name=NXT_HAVE_ARC4RANDOM
-nxt_feature_run=
-nxt_feature_incs=
-nxt_feature_libs=
-nxt_feature_test="#include <stdlib.h>
-
- int main() {
-
- (void) arc4random();
-
- return 0;
- }"
-. auto/feature
-
-
# Linux 3.17 getrandom().
nxt_feature="getrandom()"
diff --git a/test/nxt_lib_unit_test.c b/test/nxt_lib_unit_test.c
index 50615828..bac2258e 100644
--- a/test/nxt_lib_unit_test.c
+++ b/test/nxt_lib_unit_test.c
@@ -69,11 +69,9 @@ main(int argc, char **argv)
#endif
-#if !(NXT_HAVE_ARC4RANDOM)
if (nxt_random_unit_test(thr) != NXT_OK) {
return 1;
}
-#endif
if (nxt_term_parse_unit_test(thr) != NXT_OK) {
return 1;