[tor-commits] [tor/master] Fix nodelist/node_is_dir test wrt 12538.
nickm at torproject.org
nickm at torproject.org
Mon Dec 21 12:30:55 UTC 2015
commit a6c9fcc486f3a635b711ab0bea21e0a7494621de
Author: Nick Mathewson <nickm at torproject.org>
Date: Fri Dec 18 13:24:23 2015 -0500
Fix nodelist/node_is_dir test wrt 12538.
---
src/test/test_nodelist.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/test_nodelist.c b/src/test/test_nodelist.c
index 0a4151a..b0cb87d 100644
--- a/src/test/test_nodelist.c
+++ b/src/test/test_nodelist.c
@@ -85,7 +85,7 @@ test_nodelist_node_is_dir(void *arg)
rs.is_v2_dir = 0;
rs.dir_port = 1;
- tt_assert(node_is_dir(&node));
+ tt_assert(! node_is_dir(&node));
node.rs = NULL;
tt_assert(!node_is_dir(&node));
@@ -94,10 +94,10 @@ test_nodelist_node_is_dir(void *arg)
tt_assert(node_is_dir(&node));
ri.supports_tunnelled_dir_requests = 0;
ri.dir_port = 1;
- tt_assert(node_is_dir(&node));
+ tt_assert(! node_is_dir(&node));
- done:
- return;
+ done:
+ return;
}
#define NODE(name, flags) \
More information about the tor-commits
mailing list