replay work.

git-svn-id: file:///svn/unbound/trunk@88 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-02-09 16:39:47 +00:00
parent df47ba04d7
commit 71f1b12009
4 changed files with 168 additions and 19 deletions
+3 -1
View File
@@ -41,6 +41,7 @@
#include "config.h"
#include "testcode/ldns-testpkts.h"
#include "testcode/replay.h"
#include "testcode/fake_event.h"
/**
* include the main program from the unbound daemon.
@@ -184,6 +185,7 @@ main(int argc, char* argv[])
/* setup test environment */
scen = setup_playback(playback_file);
/* init fake event backend */
fake_event_init(scen);
pass_argv[pass_argc] = NULL;
echo_cmdline(pass_argc, pass_argv);
@@ -195,7 +197,7 @@ main(int argc, char* argv[])
/* run the normal daemon */
res = daemon_main(pass_argc, pass_argv);
replay_scenario_delete(scen);
fake_event_cleanup();
for(c=1; c<pass_argc; c++)
free(pass_argv[c]);
return res;