]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
unittests: use tt_i64_op() instead of tt_int_op() in laplace tests.
authorGeorge Kadianakis <desnacked@riseup.net>
Thu, 15 Jan 2015 15:41:25 +0000 (15:41 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Jan 2015 16:08:22 +0000 (11:08 -0500)
Do this in even more places to try to fix the build.

src/test/test_util.c

index 4039a095fb40b8d00e49db91a102862d5718b621..2ee1d6dfc1c5f67929bfe0e96d9918edf97266c5 100644 (file)
@@ -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:
   ;