[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Török Edvin edwin at clamav.net
Sun Apr 4 01:27:35 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit e407d32d04dee5b7ff2e19bdd3168fbbf6147102
Author: Török Edvin <edwin at clamav.net>
Date:   Tue Mar 30 11:10:58 2010 +0300

    Increase timeout of testcase itself.

diff --git a/unit_tests/check_bytecode.c b/unit_tests/check_bytecode.c
index a8f7cbf..0b76e1a 100644
--- a/unit_tests/check_bytecode.c
+++ b/unit_tests/check_bytecode.c
@@ -82,8 +82,7 @@ static void runtest(const char *file, uint64_t expected, int fail, int nojit,
     }
 
     ctx = cli_bytecode_context_alloc();
-    /* small timeout, these bytecodes are fast! */
-    ctx->bytecode_timeout = fail == CL_ETIMEOUT ? 10 : 3000;
+    ctx->bytecode_timeout = fail == CL_ETIMEOUT ? 10 : 10000;
     fail_unless(!!ctx, "cli_bytecode_context_alloc failed");
 
     if (infile) {
@@ -311,6 +310,7 @@ Suite *test_bytecode_suite(void)
     Suite *s = suite_create("bytecode");
     TCase *tc_cli_arith = tcase_create("arithmetic");
     suite_add_tcase(s, tc_cli_arith);
+    tcase_set_timeout(tc_cli_arith, 20);
     tcase_add_test(tc_cli_arith, test_retmagic_jit);
     tcase_add_test(tc_cli_arith, test_arith_jit);
     tcase_add_test(tc_cli_arith, test_apicalls_jit);

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list