diff options
author | Roger Dingledine <arma@torproject.org> | 2007-01-11 01:41:07 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-01-11 01:41:07 +0000 |
commit | 7beb0fd5ddce9239d3e2fc9e260e4641d0b44e15 (patch) | |
tree | 5b908a077769237a0e703a1f47b8c58ac36b2d04 | |
parent | 990e0be64e5d710e480ddf9c4aecc9fd32d16eed (diff) | |
download | tor-7beb0fd5ddce9239d3e2fc9e260e4641d0b44e15.tar tor-7beb0fd5ddce9239d3e2fc9e260e4641d0b44e15.tar.gz |
Make the unit tests work again.
The foo_init() funcs need to happen before we call
options_act() and friends.
svn:r9331
-rw-r--r-- | src/or/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 13baa47b0..f4a5c22af 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()); |