diff options
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index d6252061b4..604c68694d 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1525,11 +1525,13 @@ main(int c, char**v) { or_options_t *options = options_new(); network_init(); + setup_directory(); options_init(options); + options->DataDirectory = tor_strdup(temp_dir); set_options(options); crypto_seed_rng(); - setup_directory(); + rep_hist_init(); atexit(remove_directory); |