unit-tests: RSA key generation might take longer than 4 seconds
authorTobias Brunner <tobias@strongswan.org>
Thu, 27 Jun 2013 08:41:34 +0000 (10:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 27 Jun 2013 09:06:47 +0000 (11:06 +0200)
Check uses a default timeout of 4 seconds for each test case, generating
keys of 6 different key sizes might take longer than that.

src/libstrongswan/tests/test_rsa.c

index 74027a9..4c75c34 100644 (file)
@@ -382,6 +382,7 @@ Suite *rsa_suite_create()
 
        tc = tcase_create("generate");
        tcase_add_loop_test(tc, test_gen, 0, countof(key_sizes));
+       tcase_set_timeout(tc, 8);
        suite_add_tcase(s, tc);
 
        tc = tcase_create("load");