diff options
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c index e10ebc2d27..2df0785f03 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -2769,6 +2769,7 @@ test_v3_networkstatus(void) char *detached_text1, *addition1, *detached_text2, *addition2; ns_detached_signatures_t *dsig1, *dsig2; size_t sz; + int regen; /* Compute the other two signed consensuses. */ smartlist_shuffle(votes); consensus_text2 = networkstatus_compute_consensus(votes, 3, @@ -2812,7 +2813,8 @@ test_v3_networkstatus(void) /* Try adding it to con2. */ detached_text2 = networkstatus_get_detached_signatures(con2); addition1 = NULL; - test_eq(1, networkstatus_add_detached_signatures(con2, dsig1, &addition1)); + test_eq(1, networkstatus_add_detached_signatures(con2, dsig1, &addition1, + ®en)); sz = strlen(detached_text2)+strlen(addition1)+1; detached_text2 = tor_realloc(detached_text2, sz); strlcat(detached_text2, addition1, sz); @@ -2830,10 +2832,12 @@ test_v3_networkstatus(void) test_eq(2, smartlist_len(dsig2->signatures)); /* Try adding to con2 twice; verify that nothing changes. */ - test_eq(0, networkstatus_add_detached_signatures(con2, dsig1, &addition2)); + test_eq(0, networkstatus_add_detached_signatures(con2, dsig1, &addition2, + ®en)); /* Add to con. */ - test_eq(2, networkstatus_add_detached_signatures(con, dsig2, &addition2)); + test_eq(2, networkstatus_add_detached_signatures(con, dsig2, &addition2, + ®en)); /* Check signatures */ test_assert(!networkstatus_check_voter_signature(con, smartlist_get(con->voters, 0), |