Restored arc4random unit test after 59fc46dd5e1d.
This commit is contained in:
16
auto/unix
16
auto/unix
@@ -3,22 +3,6 @@
|
|||||||
# Copyright (C) NGINX, Inc.
|
# 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().
|
# Linux 3.17 getrandom().
|
||||||
|
|
||||||
nxt_feature="getrandom()"
|
nxt_feature="getrandom()"
|
||||||
|
|||||||
@@ -69,11 +69,9 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(NXT_HAVE_ARC4RANDOM)
|
|
||||||
if (nxt_random_unit_test(thr) != NXT_OK) {
|
if (nxt_random_unit_test(thr) != NXT_OK) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (nxt_term_parse_unit_test(thr) != NXT_OK) {
|
if (nxt_term_parse_unit_test(thr) != NXT_OK) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user