Have all tests use EXIT() to exit rather than exit(), since the latter doesn't
always give the expected result on some platforms.
diff --git a/crypto/dsa/dsatest.c b/crypto/dsa/dsatest.c
index 12da64f..4c411f2 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 @@
BIO_free(bio_err);
bio_err = NULL;
}
- exit(!ret);
+ EXIT(!ret);
return(0);
}
@@ -231,7 +234,7 @@
if (!ok && (p == 0) && (num > 1))
{
BIO_printf((BIO *)arg,"error in dsatest\n");
- exit(1);
+ EXIT(1);
}
}
#endif