diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-28 18:54:30 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-28 18:54:30 +0000 |
commit | 55f78baf32f213301a0e8d6c6e7f40bd3b9857b1 (patch) | |
tree | 1daf577fe941ef129c8657f231b060b786a03d4b /crypto/dh/dhtest.c | |
parent | 6c359479d7755e6f228196e17fcdc98a05724d78 (diff) | |
download | openssl-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/dh/dhtest.c')
-rw-r--r-- | crypto/dh/dhtest.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/dh/dhtest.c b/crypto/dh/dhtest.c index 34894ced73..27237741da 100644 --- a/crypto/dh/dhtest.c +++ b/crypto/dh/dhtest.c @@ -59,6 +59,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> + +#include "../e_os.h" + #ifdef OPENSSL_SYS_WINDOWS #include "../bio/bss_file.c" #endif @@ -111,7 +114,7 @@ int main(int argc, char *argv[]) RAND_seed(rnd_seed, sizeof rnd_seed); out=BIO_new(BIO_s_file()); - if (out == NULL) exit(1); + if (out == NULL) EXIT(1); BIO_set_fp(out,stdout,BIO_NOCLOSE); a=DH_generate_parameters(64,DH_GENERATOR_5,cb,out); @@ -195,7 +198,7 @@ err: CRYPTO_cleanup_all_ex_data(); ERR_remove_state(0); CRYPTO_mem_leaks_fp(stderr); - exit(ret); + EXIT(ret); return(ret); } |