From: Alexander Sosedkin Date: Mon, 30 Aug 2021 17:38:03 +0000 (+0200) Subject: tests: remove unused `terminate` from 2 tests X-Git-Tag: 3.7.3~48^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8554e98779e6b021cd4888eccda89c99b52b7f13;p=thirdparty%2Fgnutls.git tests: remove unused `terminate` from 2 tests Signed-off-by: Alexander Sosedkin --- diff --git a/tests/send-data-before-handshake.c b/tests/send-data-before-handshake.c index 5c15dda0ca..b2ab6aa966 100644 --- a/tests/send-data-before-handshake.c +++ b/tests/send-data-before-handshake.c @@ -50,8 +50,6 @@ int main() #include "cert-common.h" #include "utils.h" -static void terminate(void); - /* This program tests that a client cannot send any unencrypted data * during the handshake process. That is to ensure we protect buggy clients * from transmitting sensitive data over the wire. @@ -180,13 +178,6 @@ static void client(int fd, const char *prio) /* These are global */ pid_t child; -static void terminate(void) -{ - assert(child); - kill(child, SIGTERM); - exit(1); -} - static void server(int fd, const char *prio) { int ret; diff --git a/tests/session-tickets-missing.c b/tests/session-tickets-missing.c index 509e43f639..aaa1caea13 100644 --- a/tests/session-tickets-missing.c +++ b/tests/session-tickets-missing.c @@ -52,8 +52,6 @@ int main() #include "cert-common.h" #include "utils.h" -static void terminate(void); - /* This program tests that handshakes do not include a session ticket * if the flag GNUTLS_NO_TICKETS is specified under TLS 1.2. * @@ -167,13 +165,6 @@ static void client(int fd, const char *prio, unsigned int flags) /* These are global */ pid_t child; -static void terminate(void) -{ - assert(child); - kill(child, SIGTERM); - exit(1); -} - static void server(int fd, const char *prio, unsigned int flags) { int ret;