]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: use GNUTLS_SELF_TEST_FLAG_ALL macro instead of magic number
authorDaiki Ueno <ueno@gnu.org>
Thu, 11 May 2023 00:57:09 +0000 (09:57 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 24 May 2023 04:50:06 +0000 (06:50 +0200)
Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/slow/cipher-test.c

index 9c7087d632add220269e429b8bd8de51225655c7..b141a8d428bab5ba01659fdb079c8d326322de63 100644 (file)
@@ -42,19 +42,19 @@ int main(int argc, char **argv)
        signal(SIGILL, handle_sigill);
 
        /* ciphers */
-       if (gnutls_cipher_self_test(1, 0) < 0)
+       if (gnutls_cipher_self_test(GNUTLS_SELF_TEST_FLAG_ALL, 0) < 0)
                return 1;
 
        /* message digests */
-       if (gnutls_digest_self_test(1, 0) < 0)
+       if (gnutls_digest_self_test(GNUTLS_SELF_TEST_FLAG_ALL, 0) < 0)
                return 1;
 
        /* MAC */
-       if (gnutls_mac_self_test(1, 0) < 0)
+       if (gnutls_mac_self_test(GNUTLS_SELF_TEST_FLAG_ALL, 0) < 0)
                return 1;
 
        /* PK */
-       if (gnutls_pk_self_test(1, 0) < 0)
+       if (gnutls_pk_self_test(GNUTLS_SELF_TEST_FLAG_ALL, 0) < 0)
                return 1;
 
        gnutls_global_deinit();