diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:12:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:28 -0400 |
commit | 1bb9734e3a745e2a16b58512f47a6db1229a2b75 (patch) | |
tree | 0ad06edda894e83b3f99dc946d34555014c04ce8 /src/test/test.c | |
parent | 42acef68ad6fbe462a00815fbccf94c817931e8f (diff) | |
download | tor-1bb9734e3a745e2a16b58512f47a6db1229a2b75.tar.gz tor-1bb9734e3a745e2a16b58512f47a6db1229a2b75.zip |
Implement policies for nodes (and for microdescriptors too)
Diffstat (limited to 'src/test/test.c')
-rw-r--r-- | src/test/test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c index 8d8c46fca2..a57b6b0444 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -560,6 +560,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; @@ -572,10 +573,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 */ |