[or-cvs] [tor/master] Fix unit tests.

Nick Mathewson nickm at seul.org
Fri Jul 24 02:45:26 UTC 2009


Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Fri, 24 Jul 2009 01:13:33 +0200
Subject: Fix unit tests.
Commit: f80537e3e079ffa18f3b42aff05848fe0407171a

Now that we require EntryStatistics to be 1 for counting connecting
clients, unit tests need to set that config option, too.

Reported by Sebastian Hahn.
---
 src/or/test.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/or/test.c b/src/or/test.c
index b2a70ea..3103eed 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -4799,6 +4799,7 @@ main(int c, char**v)
   setup_directory();
   options_init(options);
   options->DataDirectory = tor_strdup(temp_dir);
+  options->EntryStatistics = 1;
   if (set_options(options, &errmsg) < 0) {
     printf("Failed to set initial options: %s\n", errmsg);
     tor_free(errmsg);
-- 
1.5.6.5



More information about the tor-commits mailing list