Skip to content

Commit

Permalink
Unit-tests need to call cl_init, otherwise mkdir can fail randomly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Török Edvin committed Oct 26, 2009
1 parent 4b2ade1 commit d659015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions unit_tests/check_htmlnorm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions unit_tests/check_jsnorm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d659015

Please sign in to comment.