mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-12 22:23:49 +01:00
Make the unit tests work again.
The foo_init() funcs need to happen before we call options_act() and friends. svn:r9331
This commit is contained in:
parent
990e0be64e
commit
7beb0fd5dd
@ -1918,6 +1918,7 @@ main(int c, char**v)
|
|||||||
(void) c;
|
(void) c;
|
||||||
(void) v;
|
(void) v;
|
||||||
options->command = CMD_RUN_UNITTESTS;
|
options->command = CMD_RUN_UNITTESTS;
|
||||||
|
rep_hist_init();
|
||||||
network_init();
|
network_init();
|
||||||
setup_directory();
|
setup_directory();
|
||||||
options_init(options);
|
options_init(options);
|
||||||
@ -1935,7 +1936,6 @@ main(int c, char**v)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
rep_hist_init();
|
|
||||||
atexit(remove_directory);
|
atexit(remove_directory);
|
||||||
|
|
||||||
printf("Running Tor unit tests on %s\n", get_uname());
|
printf("Running Tor unit tests on %s\n", get_uname());
|
||||||
|
Loading…
Reference in New Issue
Block a user