summaryrefslogtreecommitdiff
path: root/tests/tls12-rehandshake-cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-04-17 09:31:12 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-04-18 11:21:25 +0200
commit21c56085c53e0aedd6379764167c2651f3045c04 (patch)
treef9c31211467e300766ccd84f2c9bce101bc992d8 /tests/tls12-rehandshake-cert.c
parentd821485782334c01a956ac9f5b1da97d4df4c573 (diff)
downloadgnutls-21c56085c53e0aedd6379764167c2651f3045c04.tar.gz
tests: eliminated exit_code variable used in few tests
It was a legacy variable for error printing that was never used uniformly. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/tls12-rehandshake-cert.c')
-rw-r--r--tests/tls12-rehandshake-cert.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/tls12-rehandshake-cert.c b/tests/tls12-rehandshake-cert.c
index 36660cc15c..998d997363 100644
--- a/tests/tls12-rehandshake-cert.c
+++ b/tests/tls12-rehandshake-cert.c
@@ -46,7 +46,6 @@ static void tls_log_func(int level, const char *str)
void doit(void)
{
- int exit_code = EXIT_SUCCESS;
/* Server stuff. */
gnutls_certificate_credentials_t serverx509cred;
gnutls_session_t server;
@@ -114,11 +113,4 @@ void doit(void)
gnutls_certificate_free_credentials(clientx509cred);
gnutls_global_deinit();
-
- if (debug) {
- if (exit_code == 0)
- puts("Self-test successful");
- else
- puts("Self-test failed");
- }
}