diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-08 14:39:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-08 14:39:20 -0400 |
commit | b0a9e54705d16d08ae7aff272492832dbb35646d (patch) | |
tree | 82064efbdc8c3ed2151c9783cbf6aab44e565df1 /src/test/log_test_helpers.c | |
parent | d0fe86f39ebcc9b2e17ee3b7fb638e34c2133418 (diff) | |
download | tor-b0a9e54705d16d08ae7aff272492832dbb35646d.tar.gz tor-b0a9e54705d16d08ae7aff272492832dbb35646d.zip |
Resolve more BUG warnings in the unit tests
Diffstat (limited to 'src/test/log_test_helpers.c')
-rw-r--r-- | src/test/log_test_helpers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/log_test_helpers.c b/src/test/log_test_helpers.c index 5eba566d1c..7f7f1d1d42 100644 --- a/src/test/log_test_helpers.c +++ b/src/test/log_test_helpers.c @@ -105,6 +105,12 @@ mock_saved_logs(void) return saved_logs; } +int +mock_saved_log_n_entries(void) +{ + return saved_logs ? smartlist_len(saved_logs) : 0; +} + /** * Return true iff there is a message recorded by log capture * that is exactly equal to <b>msg</b> |