[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:08:22 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit d659015bb6e62a9fa429bfc61d07ef194812c636
Author: Török Edvin <edwin at clamav.net>
Date:   Mon Oct 26 19:01:56 2009 +0200

    Unit-tests need to call cl_init, otherwise mkdir can fail randomly.

diff --git a/unit_tests/check_htmlnorm.c b/unit_tests/check_htmlnorm.c
index a859c95..104d47c 100644
--- a/unit_tests/check_htmlnorm.c
+++ b/unit_tests/check_htmlnorm.c
@@ -33,6 +33,7 @@ static char *dir;
 
 static void htmlnorm_setup(void)
 {
+        cl_init(CL_INIT_DEFAULT);
 	dconf_setup();
 	dir = cli_gentemp(NULL);
 	fail_unless(!!dir, "cli_gentemp failed");
diff --git a/unit_tests/check_jsnorm.c b/unit_tests/check_jsnorm.c
index 30f608c..42bb568 100644
--- a/unit_tests/check_jsnorm.c
+++ b/unit_tests/check_jsnorm.c
@@ -207,6 +207,7 @@ static char *tmpdir = NULL;
 
 static void jstest_setup(void)
 {
+        cl_init(CL_INIT_DEFAULT);
 	state = cli_js_init();
 	fail_unless(!!state, "js init");
 	tmpdir = cli_gentemp(NULL);

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list