From 76122d97c2ecd3b91a91d62d8cc8deeac414df21 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 21 Mar 2010 10:59:26 -0700 Subject: [PATCH] Test emptier environment --- lib/hcrypto/test_crypto.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/hcrypto/test_crypto.in b/lib/hcrypto/test_crypto.in index 1edf84bac..e9817eaed 100644 --- a/lib/hcrypto/test_crypto.in +++ b/lib/hcrypto/test_crypto.in @@ -78,4 +78,21 @@ for a in 7 15 16 17 31 32 33 ; do cmp test-out-1 test-out-$a || { echo "cmp $a failed" ; exit 1; } done +# +# Last time we run is w/o HOME and RANDFILE to make sure we can do +# RAND_file_name() when the enviroment is lacking those. +# + +HOME= +RANDFILE= + +${rand} --method=unix --file=unix 2>error +res=$? +if test "X$res" != X0 ; then + grep "random not ready yet" error || \ + { echo "random unix ready failing" ; cat error; exit 1; } + echo "random method unix out for lunch" + continue +fi + exit 0