aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dsa/dsatest.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/dsa/dsatest.c
parent6c359479d7755e6f228196e17fcdc98a05724d78 (diff)
downloadopenssl-55f78baf32f213301a0e8d6c6e7f40bd3b9857b1.tar.gz
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/dsa/dsatest.c')
-rw-r--r--crypto/dsa/dsatest.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/dsa/dsatest.c b/crypto/dsa/dsatest.c
index 12da64f9f4..4c411f2c8c 100644
--- a/crypto/dsa/dsatest.c
+++ b/crypto/dsa/dsatest.c
@@ -61,6 +61,9 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+
+#include "../e_os.h"
+
#include <openssl/crypto.h>
#include <openssl/rand.h>
#include <openssl/bio.h>
@@ -212,7 +215,7 @@ end:
BIO_free(bio_err);
bio_err = NULL;
}
- exit(!ret);
+ EXIT(!ret);
return(0);
}
@@ -231,7 +234,7 @@ static void MS_CALLBACK dsa_cb(int p, int n, void *arg)
if (!ok && (p == 0) && (num > 1))
{
BIO_printf((BIO *)arg,"error in dsatest\n");
- exit(1);
+ EXIT(1);
}
}
#endif