[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9331: Make the unit tests work again. The foo_init() funcs need to (tor/trunk/src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9331: Make the unit tests work again. The foo_init() funcs need to (tor/trunk/src/or)
- From: arma@xxxxxxxx
- Date: Wed, 10 Jan 2007 20:41:08 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 10 Jan 2007 20:41:15 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: arma
Date: 2007-01-10 20:41:07 -0500 (Wed, 10 Jan 2007)
New Revision: 9331
Modified:
tor/trunk/src/or/test.c
Log:
Make the unit tests work again.
The foo_init() funcs need to happen before we call
options_act() and friends.
Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c 2007-01-11 00:38:08 UTC (rev 9330)
+++ tor/trunk/src/or/test.c 2007-01-11 01:41:07 UTC (rev 9331)
@@ -1918,6 +1918,7 @@
(void) c;
(void) v;
options->command = CMD_RUN_UNITTESTS;
+ rep_hist_init();
network_init();
setup_directory();
options_init(options);
@@ -1935,7 +1936,6 @@
return 0;
}
- rep_hist_init();
atexit(remove_directory);
printf("Running Tor unit tests on %s\n", get_uname());