summaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-13 16:04:25 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-13 16:04:25 -0400
commit8c837db38f5b2015dd579de8d8df580f51d133bc (patch)
tree8a67afb20b2b998fa20b11c522acf1cb3cd634c6 /src/test/test.c
parentcbda016bc5f588351900433835bca912efeb41c4 (diff)
parentc9dece14ae7d9c14c17df6685f7504c23eb65899 (diff)
downloadtor-8c837db38f5b2015dd579de8d8df580f51d133bc.tar.gz
tor-8c837db38f5b2015dd579de8d8df580f51d133bc.zip
Merge branch 'nodes'
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 104c607785..3f014186a0 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -576,6 +576,7 @@ test_policy_summary_helper(const char *policy_str,
smartlist_t *policy = smartlist_create();
char *summary = NULL;
int r;
+ short_policy_t *short_policy = NULL;
line.key = (char*)"foo";
line.value = (char *)policy_str;
@@ -588,10 +589,14 @@ test_policy_summary_helper(const char *policy_str,
test_assert(summary != NULL);
test_streq(summary, expected_summary);
+ short_policy = parse_short_policy(summary);
+ tt_assert(short_policy);
+
done:
tor_free(summary);
if (policy)
addr_policy_list_free(policy);
+ short_policy_free(short_policy);
}
/** Run unit tests for generating summary lines of exit policies */