diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-28 10:06:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-28 10:06:10 -0500 |
commit | 11b652acb382b181927d2c31a50e4c8621615083 (patch) | |
tree | 7f97ff495e4e4357b46c09b288d265cc74166acb /src/test/test_scheduler.c | |
parent | 430f5852ac1c19cea295fd1cb4c362777f1de21a (diff) | |
download | tor-11b652acb382b181927d2c31a50e4c8621615083.tar.gz tor-11b652acb382b181927d2c31a50e4c8621615083.zip |
Fix some 32-bit build issues in the tests
When comparing 64-bit types, you need to use tt_[ui]64_op().
Found by Jenkins
Diffstat (limited to 'src/test/test_scheduler.c')
-rw-r--r-- | src/test/test_scheduler.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_scheduler.c b/src/test/test_scheduler.c index d031214f41..a7a1acc83e 100644 --- a/src/test/test_scheduler.c +++ b/src/test/test_scheduler.c @@ -729,22 +729,22 @@ test_scheduler_queue_heuristic(void *arg) /* Not yet inited case */ scheduler_update_queue_heuristic(now - 180); - tt_int_op(queue_heuristic, ==, 0); + tt_u64_op(queue_heuristic, ==, 0); tt_int_op(queue_heuristic_timestamp, ==, now - 180); queue_heuristic = 1000000000L; queue_heuristic_timestamp = now - 120; scheduler_update_queue_heuristic(now - 119); - tt_int_op(queue_heuristic, ==, 500000000L); + tt_u64_op(queue_heuristic, ==, 500000000L); tt_int_op(queue_heuristic_timestamp, ==, now - 119); scheduler_update_queue_heuristic(now - 116); - tt_int_op(queue_heuristic, ==, 62500000L); + tt_u64_op(queue_heuristic, ==, 62500000L); tt_int_op(queue_heuristic_timestamp, ==, now - 116); qh = scheduler_get_queue_heuristic(); - tt_int_op(qh, ==, 0); + tt_u64_op(qh, ==, 0); done: return; |