summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-23 01:57:08 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-23 01:57:34 -0400
commit31f6806aa7d529ec42f9ddfacdc64bdd644863a7 (patch)
tree77074c5d90315cf3dbb38f7e8ac4a3ace309b98f
parent5b1c257d9aea56b66b9069c8593fb9a4f00192a3 (diff)
downloadtor-31f6806aa7d529ec42f9ddfacdc64bdd644863a7.tar.gz
tor-31f6806aa7d529ec42f9ddfacdc64bdd644863a7.zip
Use tt_ptr_op, not test_eq, for pointer comparisons in tests
Makes mingw64 a bit happier.
-rw-r--r--src/test/test_containers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_containers.c b/src/test/test_containers.c
index 6858fa4853..067c4c1907 100644
--- a/src/test/test_containers.c
+++ b/src/test/test_containers.c
@@ -901,12 +901,12 @@ test_container_fp_pair_map(void)
memset(fp6.second, 0x62, DIGEST_LEN);
v = fp_pair_map_set(map, &fp1, (void*)99);
- test_eq(v, NULL);
+ tt_ptr_op(v, ==, NULL);
test_assert(!fp_pair_map_isempty(map));
v = fp_pair_map_set(map, &fp2, (void*)101);
- test_eq(v, NULL);
+ tt_ptr_op(v, ==, NULL);
v = fp_pair_map_set(map, &fp1, (void*)100);
- test_eq(v, (void*)99);
+ tt_ptr_op(v, ==, (void*)99);
test_eq_ptr(fp_pair_map_get(map, &fp1), (void*)100);
test_eq_ptr(fp_pair_map_get(map, &fp2), (void*)101);
test_eq_ptr(fp_pair_map_get(map, &fp3), NULL);