diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-12 20:18:05 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-12 20:18:05 +0000 |
commit | 63256c9e7a4f9fda1f12e2fa0faf59a46f1a3b46 (patch) | |
tree | 1331d5e86515c8c08a005b181ce667271cabbb59 /src | |
parent | 538655cd806b46519512e10ef097790afa1b36b9 (diff) | |
download | tor-63256c9e7a4f9fda1f12e2fa0faf59a46f1a3b46.tar.gz tor-63256c9e7a4f9fda1f12e2fa0faf59a46f1a3b46.zip |
make unit tests pass again
but note a bug that i don't know how to address. nick?
svn:r2030
Diffstat (limited to 'src')
-rw-r--r-- | src/or/test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 0ee0f28692..36b5a8ef89 100644 --- a/src/or/test.c +++ b/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" |