Explorar o código

make unit tests pass again
but note a bug that i don't know how to address. nick?


svn:r2030

Roger Dingledine %!s(int64=22) %!d(string=hai) anos
pai
achega
63256c9e7a
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/or/test.c

+ 4 - 1
src/or/test.c

@@ -722,7 +722,10 @@ test_dir_format()
   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"