summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 13baa47b05..f4a5c22af7 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1918,6 +1918,7 @@ main(int c, char**v)
(void) c;
(void) v;
options->command = CMD_RUN_UNITTESTS;
+ rep_hist_init();
network_init();
setup_directory();
options_init(options);
@@ -1935,7 +1936,6 @@ main(int c, char**v)
return 0;
}
- rep_hist_init();
atexit(remove_directory);
printf("Running Tor unit tests on %s\n", get_uname());