summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/pkcs11/pkcs11-cert-import-url-exts.c3
-rw-r--r--tests/pkcs11/pkcs11-get-exts.c3
-rw-r--r--tests/pkcs11/pkcs11-get-raw-issuer-exts.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/pkcs11/pkcs11-cert-import-url-exts.c b/tests/pkcs11/pkcs11-cert-import-url-exts.c
index f0cb5edebd..9f0eb0bd68 100644
--- a/tests/pkcs11/pkcs11-cert-import-url-exts.c
+++ b/tests/pkcs11/pkcs11-cert-import-url-exts.c
@@ -85,7 +85,8 @@ void doit(void)
ret = gnutls_pkcs11_add_provider(lib, "trusted");
if (ret != 0) {
- exit(77);
+ fail("%d: %s\n", ret, gnutls_strerror(ret));
+ exit(1);
}
assert(gnutls_x509_crt_init(&crt)>=0);
diff --git a/tests/pkcs11/pkcs11-get-exts.c b/tests/pkcs11/pkcs11-get-exts.c
index 68700e4779..1d236a6b3d 100644
--- a/tests/pkcs11/pkcs11-get-exts.c
+++ b/tests/pkcs11/pkcs11-get-exts.c
@@ -75,7 +75,8 @@ void doit(void)
ret = gnutls_pkcs11_add_provider(lib, NULL);
if (ret != 0) {
- exit(77);
+ fail("%d: %s\n", ret, gnutls_strerror(ret));
+ exit(1);
}
assert(gnutls_pkcs11_obj_init(&obj)>=0);
diff --git a/tests/pkcs11/pkcs11-get-raw-issuer-exts.c b/tests/pkcs11/pkcs11-get-raw-issuer-exts.c
index e9e48a7a77..2d0f23badd 100644
--- a/tests/pkcs11/pkcs11-get-raw-issuer-exts.c
+++ b/tests/pkcs11/pkcs11-get-raw-issuer-exts.c
@@ -88,7 +88,8 @@ void doit(void)
ret = gnutls_pkcs11_add_provider(lib, "trusted");
if (ret != 0) {
- exit(77);
+ fail("%d: %s\n", ret, gnutls_strerror(ret));
+ exit(1);
}
assert(gnutls_x509_crt_init(&crt)>=0);