summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-07 10:46:24 -0500
committerNick Mathewson <nickm@torproject.org>2017-03-16 14:38:28 -0400
commit05901f2c6d5e2c201158b8c841eec002c758ef7e (patch)
treed87cc23e0eb1528a522841b2288d132068bec89d /src
parent687df259c68b5ee371cf69b31a563659a1227189 (diff)
downloadtor-05901f2c6d5e2c201158b8c841eec002c758ef7e.tar.gz
tor-05901f2c6d5e2c201158b8c841eec002c758ef7e.zip
test operator cleanup
Diffstat (limited to 'src')
-rw-r--r--src/test/test_consdiff.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/test/test_consdiff.c b/src/test/test_consdiff.c
index ff5ce81f04..5014c7aebb 100644
--- a/src/test/test_consdiff.c
+++ b/src/test/test_consdiff.c
@@ -11,13 +11,6 @@
#include "routerparse.h"
#include "log_test_helpers.h"
-#ifndef OP_EQ
-#define OP_EQ ==
-#endif
-#ifndef OP_NE
-#define OP_NE !=
-#endif
-
static void
test_consdiff_smartlist_slice(void *arg)
{
@@ -525,7 +518,7 @@ test_consdiff_gen_ed_diff(void *arg)
smartlist_clear(cons2);
diff = gen_ed_diff(cons1, cons2);
- tt_ptr_op(NULL, !=, diff);
+ tt_ptr_op(NULL, OP_NE, diff);
tt_int_op(0, OP_EQ, smartlist_len(diff));
smartlist_free(diff);