diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-15 10:19:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-24 10:59:25 -0400 |
commit | 1fade372872130dca4057845eeb0a303b0ac52f6 (patch) | |
tree | 53f332aaea33e44b07ebc1747611e6e436f15f83 /src/or/consdiffmgr.c | |
parent | d418f28cb5cd175f224768fe214e2e2c1bc2b413 (diff) | |
download | tor-1fade372872130dca4057845eeb0a303b0ac52f6.tar.gz tor-1fade372872130dca4057845eeb0a303b0ac52f6.zip |
consdiffmgr non-test: check for initialization failure
Unfortunately, this test doesn't work, so I've left it
defined-out. There is currently no way in our unit tests to catch a
fatal assertion failure.
Diffstat (limited to 'src/or/consdiffmgr.c')
-rw-r--r-- | src/or/consdiffmgr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c index 0920d08750..27c95e8566 100644 --- a/src/or/consdiffmgr.c +++ b/src/or/consdiffmgr.c @@ -80,8 +80,10 @@ cdm_cache_init(void) tor_assert(cons_diff_cache == NULL); cons_diff_cache = consensus_cache_open("diff-cache", n_entries); if (cons_diff_cache == NULL) { + // LCOV_EXCL_START log_err(LD_FS, "Error: Couldn't open storage for consensus diffs."); tor_assert_unreached(); + // LCOV_EXCL_STOP } cdm_cache_dirty = 1; } |