diff options
-rw-r--r-- | tests/gnutls_x509_crt_list_import.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gnutls_x509_crt_list_import.c b/tests/gnutls_x509_crt_list_import.c index a8cad7fbf2..51fdfcb9f4 100644 --- a/tests/gnutls_x509_crt_list_import.c +++ b/tests/gnutls_x509_crt_list_import.c @@ -80,6 +80,9 @@ static void load_list(const char *name, const gnutls_datum_t *txt, if (max != ncerts) testfail("imported number (%d) doesn't match expected (%d)\n", max, ncerts); + if (ret != (int)ncerts) + testfail("imported number (%d) doesn't match return value (%d)\n", ncerts, ret); + return; } |