aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.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_config.c
parent067a4422fec371e1ef3a1b8d13d5da9a1e90c70b (diff)
downloadtor-0b36208fd88e284592bb78d5b7c41226d6576e00.tar.gz
tor-0b36208fd88e284592bb78d5b7c41226d6576e00.zip
apply ahf's test_assert_zero.cocci
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r--src/test/test_config.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c
index f46a7fba28..0c92efc7af 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -368,12 +368,12 @@ good_bridge_line_test(const char *string, const char *test_addrport,
/* If we were asked to validate a digest, but we did not get a
digest after parsing, we failed. */
if (test_digest && tor_digest_is_zero(bridge_line->digest))
- tt_assert(0);
+ tt_abort();
/* If we were not asked to validate a digest, and we got a digest
after parsing, we failed again. */
if (!test_digest && !tor_digest_is_zero(bridge_line->digest))
- tt_assert(0);
+ tt_abort();
/* If we were asked to validate a digest, and we got a digest after
parsing, make sure it's correct. */
@@ -387,17 +387,17 @@ good_bridge_line_test(const char *string, const char *test_addrport,
/* If we were asked to validate a transport name, make sure tha it
matches with the transport name that was parsed. */
if (test_transport && !bridge_line->transport_name)
- tt_assert(0);
+ tt_abort();
if (!test_transport && bridge_line->transport_name)
- tt_assert(0);
+ tt_abort();
if (test_transport)
tt_str_op(test_transport,OP_EQ, bridge_line->transport_name);
/* Validate the SOCKS argument smartlist. */
if (test_socks_args && !bridge_line->socks_args)
- tt_assert(0);
+ tt_abort();
if (!test_socks_args && bridge_line->socks_args)
- tt_assert(0);
+ tt_abort();
if (test_socks_args)
tt_assert(smartlist_strings_eq(test_socks_args,
bridge_line->socks_args));