[or-cvs] r9331: Make the unit tests work again. The foo_init() funcs need to (tor/trunk/src/or)

arma at seul.org arma at seul.org
Thu Jan 11 01:41:08 UTC 2007


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());



More information about the tor-commits mailing list