diff options
author | Roger Dingledine <arma@torproject.org> | 2012-01-08 12:17:16 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2012-01-08 12:17:16 -0500 |
commit | ecdea4eeafd921f0dcb053f2585d9cb05d6df658 (patch) | |
tree | 928e863bccd8dd871eaf098bb77a2a1541510fad /src/test | |
parent | 59d0a5ae693efe9321e03302515d405094998e43 (diff) | |
parent | cc1580dbe02f0f285fca65b7b388d99dbaf78f5c (diff) | |
download | tor-ecdea4eeafd921f0dcb053f2585d9cb05d6df658.tar.gz tor-ecdea4eeafd921f0dcb053f2585d9cb05d6df658.zip |
Merge branch 'maint-0.2.2'
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 046a1f25b5..42d368cb09 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -1284,9 +1284,11 @@ test_dir_v3_networkstatus(void) /* Try adding it to con2. */ detached_text2 = get_detached_sigs(con2,con_md2); - test_eq(1, networkstatus_add_detached_signatures(con2, dsig1, &msg)); + test_eq(1, networkstatus_add_detached_signatures(con2, dsig1, "test", + LOG_INFO, &msg)); tor_free(detached_text2); - test_eq(1, networkstatus_add_detached_signatures(con_md2, dsig1, &msg)); + test_eq(1, networkstatus_add_detached_signatures(con_md2, dsig1, "test", + LOG_INFO, &msg)); tor_free(detached_text2); detached_text2 = get_detached_sigs(con2,con_md2); //printf("\n<%s>\n", detached_text2); @@ -1307,10 +1309,12 @@ test_dir_v3_networkstatus(void) "microdesc"))); /* Try adding to con2 twice; verify that nothing changes. */ - test_eq(0, networkstatus_add_detached_signatures(con2, dsig1, &msg)); + test_eq(0, networkstatus_add_detached_signatures(con2, dsig1, "test", + LOG_INFO, &msg)); /* Add to con. */ - test_eq(2, networkstatus_add_detached_signatures(con, dsig2, &msg)); + test_eq(2, networkstatus_add_detached_signatures(con, dsig2, "test", + LOG_INFO, &msg)); /* Check signatures */ voter = smartlist_get(con->voters, 1); sig = smartlist_get(voter->sigs, 0); |