summaryrefslogtreecommitdiffstats
path: root/crypto/sha/sha1test.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/sha/sha1test.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/sha/sha1test.c')
-rw-r--r--crypto/sha/sha1test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/sha/sha1test.c b/crypto/sha/sha1test.c
index 499a1cf5af..4f2e4ada2d 100644
--- a/crypto/sha/sha1test.c
+++ b/crypto/sha/sha1test.c
@@ -60,6 +60,8 @@
#include <string.h>
#include <stdlib.h>
+#include "../e_os.h"
+
#ifdef OPENSSL_NO_SHA
int main(int argc, char *argv[])
{
@@ -155,7 +157,7 @@ int main(int argc, char *argv[])
}
else
printf("test 3 ok\n");
- exit(err);
+ EXIT(err);
EVP_MD_CTX_cleanup(&c);
return(0);
}