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/mdc2/mdc2test.c b/crypto/mdc2/mdc2test.c
index 6db5460..c9abe99 100644
--- a/crypto/mdc2/mdc2test.c
+++ b/crypto/mdc2/mdc2test.c
@@ -60,6 +60,8 @@
#include <stdlib.h>
#include <string.h>
+#include "../e_os.h"
+
#if defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_MDC2)
#define OPENSSL_NO_MDC2
#endif
@@ -138,7 +140,7 @@
printf("pad2 - ok\n");
EVP_MD_CTX_cleanup(&c);
- exit(ret);
+ EXIT(ret);
return(ret);
}
#endif