From d659015bb6e62a9fa429bfc61d07ef194812c636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B6r=C3=B6k=20Edvin?= Date: Mon, 26 Oct 2009 19:01:56 +0200 Subject: [PATCH] Unit-tests need to call cl_init, otherwise mkdir can fail randomly. --- unit_tests/check_htmlnorm.c | 1 + unit_tests/check_jsnorm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/unit_tests/check_htmlnorm.c b/unit_tests/check_htmlnorm.c index a859c9587..104d47c10 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 30f608cbf..42bb5688b 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);