From: Nikos Mavrogiannopoulos Date: Sun, 15 Nov 2015 19:35:18 +0000 (+0100) Subject: tests: made seccomp tests more reliable by waiting for each side to terminate X-Git-Tag: gnutls_3_5_0~561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8ed244bb4f1c0df84f101cd672347413723d89c;p=thirdparty%2Fgnutls.git tests: made seccomp tests more reliable by waiting for each side to terminate --- diff --git a/tests/dtls-client-with-seccomp.c b/tests/dtls-client-with-seccomp.c index 883d4c387a..f393391a12 100644 --- a/tests/dtls-client-with-seccomp.c +++ b/tests/dtls-client-with-seccomp.c @@ -150,7 +150,7 @@ static void client(int fd) exit(1); } - ret = gnutls_bye(session, GNUTLS_SHUT_WR); + ret = gnutls_bye(session, GNUTLS_SHUT_RDWR); if (ret < 0) { fail("server: error in closing session: %s\n", gnutls_strerror(ret)); } diff --git a/tests/dtls-with-seccomp.c b/tests/dtls-with-seccomp.c index ed2be69724..f31dd9a8e4 100644 --- a/tests/dtls-with-seccomp.c +++ b/tests/dtls-with-seccomp.c @@ -144,7 +144,7 @@ static void client(int fd) exit(1); } - ret = gnutls_bye(session, GNUTLS_SHUT_WR); + ret = gnutls_bye(session, GNUTLS_SHUT_RDWR); if (ret < 0) { fail("server: error in closing session: %s\n", gnutls_strerror(ret)); } diff --git a/tests/tls-client-with-seccomp.c b/tests/tls-client-with-seccomp.c index 6f803fbfc3..d5d5ba89d9 100644 --- a/tests/tls-client-with-seccomp.c +++ b/tests/tls-client-with-seccomp.c @@ -140,7 +140,7 @@ static void client(int fd) exit(1); } - ret = gnutls_bye(session, GNUTLS_SHUT_WR); + ret = gnutls_bye(session, GNUTLS_SHUT_RDWR); if (ret < 0) { fail("server: error in closing session: %s\n", gnutls_strerror(ret)); } diff --git a/tests/tls-with-seccomp.c b/tests/tls-with-seccomp.c index b7bd0ded10..737cd71c63 100644 --- a/tests/tls-with-seccomp.c +++ b/tests/tls-with-seccomp.c @@ -134,7 +134,7 @@ static void client(int fd) exit(1); } - ret = gnutls_bye(session, GNUTLS_SHUT_WR); + ret = gnutls_bye(session, GNUTLS_SHUT_RDWR); if (ret < 0) { fail("server: error in closing session: %s\n", gnutls_strerror(ret)); }