mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
test operator cleanup
This commit is contained in:
parent
687df259c6
commit
05901f2c6d
1 changed files with 1 additions and 8 deletions
|
@ -11,13 +11,6 @@
|
||||||
#include "routerparse.h"
|
#include "routerparse.h"
|
||||||
#include "log_test_helpers.h"
|
#include "log_test_helpers.h"
|
||||||
|
|
||||||
#ifndef OP_EQ
|
|
||||||
#define OP_EQ ==
|
|
||||||
#endif
|
|
||||||
#ifndef OP_NE
|
|
||||||
#define OP_NE !=
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_consdiff_smartlist_slice(void *arg)
|
test_consdiff_smartlist_slice(void *arg)
|
||||||
{
|
{
|
||||||
|
@ -525,7 +518,7 @@ test_consdiff_gen_ed_diff(void *arg)
|
||||||
smartlist_clear(cons2);
|
smartlist_clear(cons2);
|
||||||
|
|
||||||
diff = gen_ed_diff(cons1, 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));
|
tt_int_op(0, OP_EQ, smartlist_len(diff));
|
||||||
smartlist_free(diff);
|
smartlist_free(diff);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue