1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

sodium_utils tests: exit() -> _exit()

This commit is contained in:
Frank Denis 2022-11-13 23:49:38 +01:00
parent 870c6fc53f
commit 55b4510986
2 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,9 @@
#ifdef HAVE_CATCHABLE_SEGV #ifdef HAVE_CATCHABLE_SEGV
# include <signal.h> # include <signal.h>
#endif #endif
#ifndef _WIN32
# include <unistd.h>
#endif
#define TEST_NAME "sodium_utils2" #define TEST_NAME "sodium_utils2"
#include "cmptest.h" #include "cmptest.h"
@ -36,7 +39,7 @@ segv_handler(int sig)
signal(SIGABRT, SIG_DFL); signal(SIGABRT, SIG_DFL);
# endif # endif
#endif #endif
exit(0); _exit(0);
} }
int int

View File

@ -6,6 +6,9 @@
#ifdef HAVE_CATCHABLE_SEGV #ifdef HAVE_CATCHABLE_SEGV
# include <signal.h> # include <signal.h>
#endif #endif
#ifndef _WIN32
# include <unistd.h>
#endif
#define TEST_NAME "sodium_utils3" #define TEST_NAME "sodium_utils3"
#include "cmptest.h" #include "cmptest.h"
@ -32,7 +35,7 @@ segv_handler(int sig)
signal(SIGABRT, SIG_DFL); signal(SIGABRT, SIG_DFL);
# endif # endif
#endif #endif
exit(0); _exit(0);
} }
int int