summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-21 14:33:20 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-21 14:33:20 +0000
commit8b1789c71ff21b066138fc3eab03f40b1e68f67a (patch)
treeacf2fbc658727767e0448af5a20c5bd506d9b9b0 /src/or/test.c
parentb3c0d066e535d33d9ed271e92eb30cdefb18385e (diff)
downloadtor-8b1789c71ff21b066138fc3eab03f40b1e68f67a.tar.gz
tor-8b1789c71ff21b066138fc3eab03f40b1e68f67a.zip
r18336@catbus: nickm | 2008-02-21 09:33:15 -0500
Patch from Sebastian Hahn: remove obsolete timeval manipulation functions. svn:r13653
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/or/test.c b/src/or/test.c
index c18eccff66..c209db55bb 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -723,10 +723,6 @@ test_util(void)
end.tv_usec = 7000;
- test_assert(tv_cmp(&start, &end)<0);
- test_assert(tv_cmp(&end, &start)>0);
- test_assert(tv_cmp(&end, &end)==0);
-
test_eq(2000L, tv_udiff(&start, &end));
end.tv_sec = 6;
@@ -741,16 +737,9 @@ test_util(void)
test_eq(-1005000L, tv_udiff(&start, &end));
- tv_addms(&end, 5090);
- test_eq(end.tv_sec, 9);
- test_eq(end.tv_usec, 90000);
-
end.tv_usec = 999990;
start.tv_sec = 1;
start.tv_usec = 500;
- tv_add(&start, &end);
- test_eq(start.tv_sec, 11);
- test_eq(start.tv_usec, 490);
/* The test values here are confirmed to be correct on a platform
* with a working timegm. */