aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-24 15:34:34 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-24 15:34:34 -0400
commit0b36208fd88e284592bb78d5b7c41226d6576e00 (patch)
treedf80462197e8a8d3bfe2e45912272f7ecbb2126d /src/test/test_dir.c
parent067a4422fec371e1ef3a1b8d13d5da9a1e90c70b (diff)
downloadtor-0b36208fd88e284592bb78d5b7c41226d6576e00.tar.gz
tor-0b36208fd88e284592bb78d5b7c41226d6576e00.zip
apply ahf's test_assert_zero.cocci
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 6de54b149e..7539de8ebf 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -2060,7 +2060,7 @@ test_routerstatus_for_v3ns(routerstatus_t *rs, time_t now)
/* XXXX check version */
} else {
/* Weren't expecting this... */
- tt_assert(0);
+ tt_abort();
}
done:
@@ -3004,7 +3004,7 @@ gen_routerstatus_for_umbw(int idx, time_t now)
break;
default:
/* Shouldn't happen */
- tt_assert(0);
+ tt_abort();
}
if (vrs) {
vrs->microdesc = tor_malloc_zero(sizeof(vote_microdesc_hash_t));
@@ -3144,7 +3144,7 @@ test_vrs_for_umbw(vote_routerstatus_t *vrs, int voter, time_t now)
tt_int_op(rs->bandwidth_kb,OP_EQ, max_unmeasured_bw_kb / 2);
tt_int_op(vrs->measured_bw_kb,OP_EQ, 0);
} else {
- tt_assert(0);
+ tt_abort();
}
done:
@@ -3259,7 +3259,7 @@ test_routerstatus_for_umbw(routerstatus_t *rs, time_t now)
tt_assert(rs->bw_is_unmeasured);
} else {
/* Weren't expecting this... */
- tt_assert(0);
+ tt_abort();
}
done: