diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-02-12 09:54:53 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-02-12 09:54:53 -0500 |
commit | 70bade0d1a811c313684579f173041278a71c7d3 (patch) | |
tree | 266d9c01d8d60b197461f36a306491dda10504d7 | |
parent | fc6e389a25d659f2d1383f5b42f498e231ef4885 (diff) | |
parent | 46b6df7122f1fd152df92f1c6aa75c776d5a83b7 (diff) | |
download | tor-70bade0d1a811c313684579f173041278a71c7d3.tar.gz tor-70bade0d1a811c313684579f173041278a71c7d3.zip |
Merge branch 'maint-0.3.5' into release-0.3.5
-rw-r--r-- | src/test/test_rendcache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c index 7ec4771b6e..4f544cf21c 100644 --- a/src/test/test_rendcache.c +++ b/src/test/test_rendcache.c @@ -788,7 +788,9 @@ test_rend_cache_clean(void *data) desc_two->pk = pk_generate(1); strmap_set_lc(rend_cache, "foo1", one); + rend_cache_increment_allocation(rend_cache_entry_allocation(one)); strmap_set_lc(rend_cache, "foo2", two); + rend_cache_increment_allocation(rend_cache_entry_allocation(two)); rend_cache_clean(time(NULL), REND_CACHE_TYPE_CLIENT); tt_int_op(strmap_size(rend_cache), OP_EQ, 0); @@ -806,7 +808,9 @@ test_rend_cache_clean(void *data) desc_one->pk = pk_generate(0); desc_two->pk = pk_generate(1); + rend_cache_increment_allocation(rend_cache_entry_allocation(one)); strmap_set_lc(rend_cache, "foo1", one); + rend_cache_increment_allocation(rend_cache_entry_allocation(two)); strmap_set_lc(rend_cache, "foo2", two); rend_cache_clean(time(NULL), REND_CACHE_TYPE_CLIENT); |