summaryrefslogtreecommitdiff
path: root/tests/x509-cert-callback.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/x509-cert-callback.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/x509-cert-callback.c')
-rw-r--r--tests/x509-cert-callback.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/x509-cert-callback.c b/tests/x509-cert-callback.c
index e673096195..2901208c12 100644
--- a/tests/x509-cert-callback.c
+++ b/tests/x509-cert-callback.c
@@ -173,7 +173,6 @@ server_cert_callback(gnutls_session_t session,
static void start(const char *prio)
{
- int exit_code = EXIT_SUCCESS;
int ret;
/* Server stuff. */
gnutls_certificate_credentials_t serverx509cred;
@@ -416,13 +415,6 @@ static void start(const char *prio)
gnutls_global_deinit();
- if (debug > 0) {
- if (exit_code == 0)
- puts("Self-test successful");
- else
- puts("Self-test failed");
- }
-
reset_buffers();
}