]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: made seccomp tests more reliable by waiting for each side to terminate
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 15 Nov 2015 19:35:18 +0000 (20:35 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 15 Nov 2015 19:35:18 +0000 (20:35 +0100)
tests/dtls-client-with-seccomp.c
tests/dtls-with-seccomp.c
tests/tls-client-with-seccomp.c
tests/tls-with-seccomp.c

index 883d4c387a87b92407c4427fa6d15fe62f141a1f..f393391a1219ee1a080c127fc0cf4b4d2fb211d6 100644 (file)
@@ -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));
        }
index ed2be69724d85903ed9cf7b4007ecd6a75cbe449..f31dd9a8e468f0cdfd32624b4ef840430b8d5fe7 100644 (file)
@@ -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));
        }
index 6f803fbfc35afc2a27ea85bf3622e53c98ef52d3..d5d5ba89d922e243066ace8179a79fa7320b5e0a 100644 (file)
@@ -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));
        }
index b7bd0ded1009f2b2a6245a362183e1d16307c71b..737cd71c63336843bd89a9676a6064ec028b3106 100644 (file)
@@ -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));
        }