]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: reduce the number of loops in x509sign-verify2
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 8 Apr 2016 12:13:26 +0000 (14:13 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 8 Apr 2016 12:13:28 +0000 (14:13 +0200)
This enables running the test in reasonable time under valgrind.

tests/x509sign-verify2.c

index 58395699e722ed087557b7f486e354e6c0fdb4a0..157305e60fd795b9cde112579f8dab5e7b4b4c5f 100644 (file)
@@ -99,7 +99,7 @@ void test_sig(gnutls_pk_algorithm_t pk, unsigned hash, unsigned bits)
        sign_algo =
            gnutls_pk_to_sign(pk, hash);
 
-       for (j = 0; j < 1200; j++) {
+       for (j = 0; j < 100; j++) {
                ret = gnutls_pubkey_init(&pubkey);
                if (ret < 0)
                        ERR(__LINE__);