diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-04-17 09:31:12 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-04-18 11:21:25 +0200 |
commit | 21c56085c53e0aedd6379764167c2651f3045c04 (patch) | |
tree | f9c31211467e300766ccd84f2c9bce101bc992d8 /tests/auto-verify.c | |
parent | d821485782334c01a956ac9f5b1da97d4df4c573 (diff) | |
download | gnutls-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/auto-verify.c')
-rw-r--r-- | tests/auto-verify.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/auto-verify.c b/tests/auto-verify.c index 404a1ea9eb..34cae5ccd2 100644 --- a/tests/auto-verify.c +++ b/tests/auto-verify.c @@ -183,7 +183,6 @@ const gnutls_datum_t server_key = { server_key_pem, static void test_failure(const char *name, const char *prio) { - int exit_code = EXIT_SUCCESS; int ret; /* Server stuff. */ gnutls_certificate_credentials_t serverx509cred; @@ -298,19 +297,11 @@ void test_failure(const char *name, const char *prio) gnutls_certificate_free_credentials(serverx509cred); gnutls_certificate_free_credentials(clientx509cred); - - if (debug > 0) { - if (exit_code == 0) - fprintf(stderr, "%s: Self-test successful", __func__); - else - fprintf(stderr, "%s: Self-test failed", __func__); - } } static void test_success1(const char *name, const char *prio) { - int exit_code = EXIT_SUCCESS; int ret; /* Server stuff. */ gnutls_certificate_credentials_t serverx509cred; @@ -425,19 +416,11 @@ void test_success1(const char *name, const char *prio) gnutls_certificate_free_credentials(serverx509cred); gnutls_certificate_free_credentials(clientx509cred); - - if (debug > 0) { - if (exit_code == 0) - fprintf(stderr, "%s: Self-test successful", __func__); - else - fprintf(stderr, "%s: Self-test failed", __func__); - } } static void test_success2(const char *name, const char *prio) { - int exit_code = EXIT_SUCCESS; int ret; /* Server stuff. */ gnutls_certificate_credentials_t serverx509cred; @@ -542,13 +525,6 @@ void test_success2(const char *name, const char *prio) gnutls_certificate_free_credentials(serverx509cred); gnutls_certificate_free_credentials(clientx509cred); - - if (debug > 0) { - if (exit_code == 0) - fprintf(stderr, "%s: Self-test successful", __func__); - else - fprintf(stderr, "%s: Self-test failed", __func__); - } } void doit(void) |