diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-13 11:28:51 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-13 11:28:51 +0200 |
commit | 5b1d751f23e87b332b3cb3e86e488fb450abbe1c (patch) | |
tree | 3b506d88f2fb50a0ebdc7d919b4a2d9352ea511b | |
parent | 6fd7a4c3d443cd4d62f52e4ec9c5b412b970c983 (diff) | |
download | gnutls-5b1d751f23e87b332b3cb3e86e488fb450abbe1c.tar.gz |
tests: avoid calling exit() from signal handlers
-rw-r--r-- | tests/no-signal.c | 3 | ||||
-rw-r--r-- | tests/slow/cipher-test.c | 2 | ||||
-rw-r--r-- | tests/slow/hash-large.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/tests/no-signal.c b/tests/no-signal.c index 00a2f040db..2fe2927368 100644 --- a/tests/no-signal.c +++ b/tests/no-signal.c @@ -59,8 +59,7 @@ int main() static void sigpipe(int sig) { - fail("sigpipe received\n"); - exit(1); + _exit(2); } #define BUF_SIZE 64 diff --git a/tests/slow/cipher-test.c b/tests/slow/cipher-test.c index e58cb3562c..6aa5811dc3 100644 --- a/tests/slow/cipher-test.c +++ b/tests/slow/cipher-test.c @@ -23,7 +23,7 @@ int main(int argc, char **argv) static void handle_sigill(int sig) { - exit(0); + _exit(0); } static void tls_log_func(int level, const char *str) diff --git a/tests/slow/hash-large.c b/tests/slow/hash-large.c index 39abb090fc..7c00b9e622 100644 --- a/tests/slow/hash-large.c +++ b/tests/slow/hash-large.c @@ -43,7 +43,7 @@ void doit(void) static void exit_77(int signo) { - exit(77); + _exit(77); } #endif |