apply ahf's test_assert_null.cocci

This commit is contained in:
Nick Mathewson
2017-08-24 15:55:27 -04:00
parent 047790a253
commit 011d94fb11
36 changed files with 465 additions and 468 deletions
+2 -2
View File
@@ -325,8 +325,8 @@ test_consdiffmgr_add(void *arg)
tt_mem_op(body, OP_EQ, "quux", 4);
/* Try looking up another entry, but fail */
tt_assert(NULL == cdm_cache_lookup_consensus(FLAV_MICRODESC, now-60));
tt_assert(NULL == cdm_cache_lookup_consensus(FLAV_NS, now-61));
tt_ptr_op(cdm_cache_lookup_consensus(FLAV_MICRODESC, now - 60), OP_EQ, NULL);
tt_ptr_op(cdm_cache_lookup_consensus(FLAV_NS, now - 61), OP_EQ, NULL);
done:
networkstatus_vote_free(ns_tmp);