summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-28 18:56:18 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-28 18:56:18 +0000
commitdd5463333966c46f6a40df2cac53ab21962f303f (patch)
tree49fe8f9caa9e14e79b387d653050ede2f2efc457 /crypto/rand
parent6a99f544181db0e9c62ee398fdefadc21113157a (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')
-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 da96e3f695..abee3f7b2b 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 */
@@ -202,6 +204,6 @@ int main()
}
printf("test 4 done\n");
err=((err)?1:0);
- exit(err);
+ EXIT(err);
return(err);
}