aboutsummaryrefslogtreecommitdiff
path: root/src/test/log_test_helpers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-08 14:39:20 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-08 14:39:20 -0400
commitb0a9e54705d16d08ae7aff272492832dbb35646d (patch)
tree82064efbdc8c3ed2151c9783cbf6aab44e565df1 /src/test/log_test_helpers.c
parentd0fe86f39ebcc9b2e17ee3b7fb638e34c2133418 (diff)
downloadtor-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.c6
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>