summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2018-10-25 10:44:14 -0400
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-11-19 12:47:40 +0100
commita853e12076f66154d893a1b97de44d91c5269d68 (patch)
treecf3eebaa333ef7d4fc32bf5e8ccd29c6ec11db5a
parent639d1df7e4e249559b4a20b9eaad57a93b2ecdce (diff)
downloadgnutls-a853e12076f66154d893a1b97de44d91c5269d68.tar.gz
Fix RSA-PSS tests to properly return skip value
Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r--tests/pkcs11/pkcs11-rsa-pss-privkey-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/pkcs11/pkcs11-rsa-pss-privkey-test.c b/tests/pkcs11/pkcs11-rsa-pss-privkey-test.c
index e0cd657b92..60045e9d04 100644
--- a/tests/pkcs11/pkcs11-rsa-pss-privkey-test.c
+++ b/tests/pkcs11/pkcs11-rsa-pss-privkey-test.c
@@ -126,7 +126,7 @@ void doit(void)
if (verify_rsa_pss_presence() == 0) {
fprintf(stderr, "Skipping test as no RSA-PSS mech is supported\n");
- goto cleanup;
+ exit(77);
}
ret = gnutls_x509_crt_init(&crt);
@@ -265,7 +265,6 @@ void doit(void)
gnutls_pubkey_deinit(pubkey);
gnutls_privkey_deinit(pkey);
-cleanup:
gnutls_global_deinit();
remove(CONFIG);