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

0.96
Török Edvin 16 years ago
parent 4b2ade1d3b
commit d659015bb6
  1. 1
      unit_tests/check_htmlnorm.c
  2. 1
      unit_tests/check_jsnorm.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");

@ -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);

Loading…
Cancel
Save