diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-15 11:43:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-24 11:00:28 -0400 |
commit | 655f1c8e011a52910152ba52fc24c6e5b85023b4 (patch) | |
tree | 18ac22f4f248846102a03c6f497acd67cfca00c5 /src/test/test_consdiffmgr.c | |
parent | 6c86e63029ed1f5d32955f2c3e793942fd19e172 (diff) | |
download | tor-655f1c8e011a52910152ba52fc24c6e5b85023b4.tar.gz tor-655f1c8e011a52910152ba52fc24c6e5b85023b4.zip |
consdiffmgr: function to re-validate stored sha3 digests at startup
Diffstat (limited to 'src/test/test_consdiffmgr.c')
-rw-r--r-- | src/test/test_consdiffmgr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_consdiffmgr.c b/src/test/test_consdiffmgr.c index 4eb9e7afba..5161587873 100644 --- a/src/test/test_consdiffmgr.c +++ b/src/test/test_consdiffmgr.c @@ -556,6 +556,9 @@ test_consdiffmgr_cleanup_old_diffs(void *arg) tt_int_op(0, OP_EQ, consdiffmgr_add_consensus(md_body[3], md_ns[3])); tt_int_op(2, OP_EQ, consdiffmgr_cleanup()); + /* Everything should be valid at this point */ + tt_int_op(0, OP_EQ, consdiffmgr_validate()); + done: for (i = 0; i < N; ++i) { tor_free(md_body[i]); |