Have all tests use EXIT() to exit rather than exit(), since the latter doesn't
always give the expected result on some platforms.
This commit is contained in:
@@ -60,6 +60,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <openssl/rand.h>
|
||||
|
||||
#include "../e_os.h"
|
||||
|
||||
/* some FIPS 140-1 random number test */
|
||||
/* some simple tests */
|
||||
|
||||
@@ -209,6 +211,6 @@ int main()
|
||||
printf("test 4 done\n");
|
||||
err:
|
||||
err=((err)?1:0);
|
||||
exit(err);
|
||||
EXIT(err);
|
||||
return(err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user