]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test operator cleanup
authorNick Mathewson <nickm@torproject.org>
Tue, 7 Mar 2017 15:46:24 +0000 (10:46 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 16 Mar 2017 18:38:28 +0000 (14:38 -0400)
src/test/test_consdiff.c

index ff5ce81f047bf86ae8359ea5387f75deadec2bbd..5014c7aebb4dcbd8f05e9c3ccbc12d93daa61dc3 100644 (file)
 #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);