Fix the drbgtest with randomized ordering
authorMatt Caswell <matt@openssl.org>
Tue, 2 Oct 2018 12:44:17 +0000 (13:44 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 3 Oct 2018 15:41:33 +0000 (16:41 +0100)
commit1b39bc9bcf2c8a0eb1047529feb91ed00c8c6ff7
treee4ef6b79b5ba02ccc7d6110ab650a0aba10c5871
parenta21f4cec14664d8fc5f52dc42ab7119b696521a5
Fix the drbgtest with randomized ordering

In drbgtest, test_set_defaults changes the default DRBGs. This works fine
when tests are run in the normal order. However if
OPENSSL_TEST_RAND_ORDER is defined then it may fail (dependent on the
ordering). This environment variable is defined for one of the Travis
tests, so this issue was causing intermittent travis test failures.

[extended tests]

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7338)
test/drbgtest.c