Skip to content

Commit

Permalink
Add dummy virtual server for unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Oct 7, 2015
1 parent ea7cf55 commit c1f6453
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/unittest.c
Expand Up @@ -796,6 +796,11 @@ int main(int argc, char *argv[])
goto finish;
}

/*
* Setup dummy virtual server
*/
cf_section_add(main_config.config, cf_section_alloc(main_config.config, "server", NULL));

/*
* Load the modules
*/
Expand All @@ -804,7 +809,7 @@ int main(int argc, char *argv[])
goto finish;
}

state =fr_state_init(NULL, 0);
state = fr_state_init(NULL, 0);

/*
* Set the panic action (if required)
Expand Down

0 comments on commit c1f6453

Please sign in to comment.