aboutsummaryrefslogtreecommitdiffstats
path: root/test/recipes/05-test_rand.t
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-10-25 12:01:11 +1000
committerPauli <pauli@openssl.org>2021-10-26 20:02:55 +1000
commitd4dfd983e32b32b633aaa9edec422cc30419c6f7 (patch)
tree12da0013339da819a29c042a900830774ddb0a87 /test/recipes/05-test_rand.t
parente2e3f84fa5e96eb97b3cde46a213867fa79f235c (diff)
downloadopenssl-d4dfd983e32b32b633aaa9edec422cc30419c6f7.tar.gz
test-rand: return failure on not enough data, allow parent
The test-rand RNG was returning success when it had some but insufficient data. Now, it returns failure and doesn't advance the data pointer. The test-rand RNG was failing when a parent was specified. This case is now ignored. Fixes #16785 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16905)
Diffstat (limited to 'test/recipes/05-test_rand.t')
-rw-r--r--test/recipes/05-test_rand.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/recipes/05-test_rand.t b/test/recipes/05-test_rand.t
index 750b1a28e8..f37b7bcb98 100644
--- a/test/recipes/05-test_rand.t
+++ b/test/recipes/05-test_rand.t
@@ -11,8 +11,9 @@ use warnings;
use OpenSSL::Test;
use OpenSSL::Test::Utils;
-plan tests => 2;
+plan tests => 3;
setup("test_rand");
+ok(run(test(["rand_test"])));
ok(run(test(["drbgtest"])));
ok(run(test(["rand_status_test"])));