summaryrefslogtreecommitdiffstats
path: root/crypto/rand/randtest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-28 18:54:30 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-28 18:54:30 +0000
commit55f78baf32f213301a0e8d6c6e7f40bd3b9857b1 (patch)
tree1daf577fe941ef129c8657f231b060b786a03d4b /crypto/rand/randtest.c
parent6c359479d7755e6f228196e17fcdc98a05724d78 (diff)
Have all tests use EXIT() to exit rather than exit(), since the latter doesn't
always give the expected result on some platforms.
Diffstat (limited to 'crypto/rand/randtest.c')
-rw-r--r--crypto/rand/randtest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/rand/randtest.c b/crypto/rand/randtest.c
index b64de616db..701932e6ee 100644
--- a/crypto/rand/randtest.c
+++ b/crypto/rand/randtest.c
@@ -60,6 +60,8 @@
#include <stdlib.h>
#include <openssl/rand.h>
+#include "../e_os.h"
+
/* some FIPS 140-1 random number test */
/* some simple tests */
@@ -209,6 +211,6 @@ int main()
printf("test 4 done\n");
err:
err=((err)?1:0);
- exit(err);
+ EXIT(err);
return(err);
}