diff options
author | George Kadianakis <desnacked@riseup.net> | 2015-01-15 15:41:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-15 11:08:22 -0500 |
commit | bb56fd1f8f965f923529eede317a8964ee73a508 (patch) | |
tree | 1f850c2fcfef6727d3ae66747ba5d9f0d12e6d74 /src/test | |
parent | 660a35d97c1bc600521a5ece373e70477176fb1c (diff) | |
download | tor-bb56fd1f8f965f923529eede317a8964ee73a508.tar.gz tor-bb56fd1f8f965f923529eede317a8964ee73a508.zip |
unittests: use tt_i64_op() instead of tt_int_op() in laplace tests.
Do this in even more places to try to fix the build.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_util.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 4039a095fb..2ee1d6dfc1 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -4614,26 +4614,26 @@ test_util_round_to_next_multiple_of(void *arg) { (void)arg; - tt_int_op(round_uint64_to_next_multiple_of(0,1), ==, 0); - tt_int_op(round_uint64_to_next_multiple_of(0,7), ==, 0); + tt_u64_op(round_uint64_to_next_multiple_of(0,1), ==, 0); + tt_u64_op(round_uint64_to_next_multiple_of(0,7), ==, 0); - tt_int_op(round_uint64_to_next_multiple_of(99,1), ==, 99); - tt_int_op(round_uint64_to_next_multiple_of(99,7), ==, 105); - tt_int_op(round_uint64_to_next_multiple_of(99,9), ==, 99); + tt_u64_op(round_uint64_to_next_multiple_of(99,1), ==, 99); + tt_u64_op(round_uint64_to_next_multiple_of(99,7), ==, 105); + tt_u64_op(round_uint64_to_next_multiple_of(99,9), ==, 99); - tt_int_op(round_int64_to_next_multiple_of(0,1), ==, 0); - tt_int_op(round_int64_to_next_multiple_of(0,7), ==, 0); + tt_i64_op(round_int64_to_next_multiple_of(0,1), ==, 0); + tt_i64_op(round_int64_to_next_multiple_of(0,7), ==, 0); - tt_int_op(round_int64_to_next_multiple_of(99,1), ==, 99); - tt_int_op(round_int64_to_next_multiple_of(99,7), ==, 105); - tt_int_op(round_int64_to_next_multiple_of(99,9), ==, 99); + tt_i64_op(round_int64_to_next_multiple_of(99,1), ==, 99); + tt_i64_op(round_int64_to_next_multiple_of(99,7), ==, 105); + tt_i64_op(round_int64_to_next_multiple_of(99,9), ==, 99); - tt_int_op(round_int64_to_next_multiple_of(-99,1), ==, -99); - tt_int_op(round_int64_to_next_multiple_of(-99,7), ==, -98); - tt_int_op(round_int64_to_next_multiple_of(-99,9), ==, -99); + tt_i64_op(round_int64_to_next_multiple_of(-99,1), ==, -99); + tt_i64_op(round_int64_to_next_multiple_of(-99,7), ==, -98); + tt_i64_op(round_int64_to_next_multiple_of(-99,9), ==, -99); - tt_int_op(round_int64_to_next_multiple_of(INT64_MIN,2), ==, INT64_MIN); - tt_int_op(round_int64_to_next_multiple_of(INT64_MAX,2), ==, + tt_i64_op(round_int64_to_next_multiple_of(INT64_MIN,2), ==, INT64_MIN); + tt_i64_op(round_int64_to_next_multiple_of(INT64_MAX,2), ==, INT64_MAX-INT64_MAX%2); done: ; |