Fix unit test: ctx.fmap can't be NULL.

0.96
Török Edvin 15 years ago
parent e8c2df8fbd
commit 8ef83e0bfc
  1. 3
      unit_tests/check_matchers.c

@ -56,12 +56,15 @@ static const struct ac_testdata_s {
static cli_ctx ctx;
static fmap_t *thefmap = NULL;
static const char *virname = NULL;
static void setup(void)
{
struct cli_matcher *root;
virname = NULL;
thefmap = NULL;
ctx.virname = &virname;
ctx.fmap = &thefmap;
ctx.engine = cl_engine_new();
fail_unless(!!ctx.engine, "cl_engine_new() failed");
root = (struct cli_matcher *) mpool_calloc(ctx.engine->mempool, 1, sizeof(struct cli_matcher));

Loading…
Cancel
Save