[or-cvs] make unit tests pass again

Roger Dingledine arma at seul.org
Mon Jul 12 20:18:07 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	test.c 
Log Message:
make unit tests pass again
but note a bug that i don't know how to address. nick?


Index: test.c
===================================================================
RCS file: /home/or/cvsroot/src/or/test.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- test.c	12 Jul 2004 18:02:54 -0000	1.97
+++ test.c	12 Jul 2004 20:18:05 -0000	1.98
@@ -722,7 +722,10 @@
   test_assert(router_dump_router_to_string(buf, 2048, &r1, pk2)>0);
 
   strcpy(buf2, "router Magri testaddr1.foo.bar 9000 9002 9003\n"
-         "platform Tor "VERSION" on ");
+         "platform Tor "VERSION" (up 0 sec) on ");
+  /* XXX the "0" above is hardcoded, but even if we made it reflect
+   * uptime, that still wouldn't make it right, because the two
+   * descriptors might be made on different seconds... hm. */
   strcat(buf2, get_uname());
   strcat(buf2, "\n"
          "published 1970-01-01 00:00:00\n"



More information about the tor-commits mailing list