[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Hopefully fix int64 comparisons in test_dir_networkstatus_compute_bw_weights_v10



commit 183fbc4137c3b2c653e93ed0cbc0972c3d26b2ef
Author: Matt Traudt <sirmatt@xxxxxxx>
Date:   Fri Oct 28 11:37:28 2016 -0400

    Hopefully fix int64 comparisons in test_dir_networkstatus_compute_bw_weights_v10
---
 src/test/test_dir.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 58628fe..cf0b94c 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -2056,7 +2056,7 @@ test_dir_networkstatus_compute_bw_weights_v10(void *arg)
   E = 980834;
   D = 3385803;
   T = 11305425;
-  tt_int_op(G+M+E+D, OP_EQ, T);
+  tt_i64_op(G+M+E+D, OP_EQ, T);
   ret = networkstatus_compute_bw_weights_v10(chunks, G, M, E, D, T,
                                              weight_scale);
   tt_str_op(smartlist_get(chunks, 0), OP_EQ, "bandwidth-weights Wbd=883 Wbe=0 "
@@ -2072,7 +2072,7 @@ test_dir_networkstatus_compute_bw_weights_v10(void *arg)
   E=1522058;
   D=9273571;
   T=44839415;
-  tt_int_op(G+M+E+D, OP_EQ, T);
+  tt_i64_op(G+M+E+D, OP_EQ, T);
   ret = networkstatus_compute_bw_weights_v10(chunks, G, M, E, D, T,
                                              weight_scale);
   tt_str_op(smartlist_get(chunks, 0), OP_EQ, "bandwidth-weights Wbd=0 Wbe=0 "
@@ -2088,7 +2088,7 @@ test_dir_networkstatus_compute_bw_weights_v10(void *arg)
   E=2109300;
   D=2469369;
   T=9508858;
-  tt_int_op(G+M+E+D, OP_EQ, T);
+  tt_i64_op(G+M+E+D, OP_EQ, T);
   ret = networkstatus_compute_bw_weights_v10(chunks, G, M, E, D, T,
                                              weight_scale);
   tt_str_op(smartlist_get(chunks, 0), OP_EQ, "bandwidth-weights Wbd=317 "
@@ -2104,7 +2104,7 @@ test_dir_networkstatus_compute_bw_weights_v10(void *arg)
   E=1;
   D=1;
   T=4;
-  tt_int_op(G+M+E+D, OP_EQ, T);
+  tt_i64_op(G+M+E+D, OP_EQ, T);
   ret = networkstatus_compute_bw_weights_v10(chunks, G, M, E, D, T,
                                              weight_scale);
   tt_str_op(smartlist_get(chunks, 0), OP_EQ, "bandwidth-weights Wbd=3333 "

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits