aboutsummaryrefslogtreecommitdiff
path: root/src/test/log_test_helpers.h
diff options
context:
space:
mode:
authorOla Bini <ola@olabini.se>2016-01-29 11:38:54 -0500
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-02-01 09:09:44 +1100
commit8627a40fbab223386c9d13bb63e4e5d52a795286 (patch)
treea6b4840bd62a07d0ab867dd7eee37d966eb04136 /src/test/log_test_helpers.h
parentc4cb4706c9bb1087584c9813b0ca97c261e6fd77 (diff)
downloadtor-8627a40fbab223386c9d13bb63e4e5d52a795286.tar.gz
tor-8627a40fbab223386c9d13bb63e4e5d52a795286.zip
Add a helper to search for strings in the log, and change option tests to use this helper instead of looking at specific indices in the log list
Diffstat (limited to 'src/test/log_test_helpers.h')
-rw-r--r--src/test/log_test_helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/log_test_helpers.h b/src/test/log_test_helpers.h
index af8e8a60e7..3a565c67c5 100644
--- a/src/test/log_test_helpers.h
+++ b/src/test/log_test_helpers.h
@@ -26,6 +26,7 @@ void teardown_capture_of_logs(int prev);
const char *mock_saved_log_at(int ix);
int mock_saved_severity_at(int ix);
int mock_saved_log_number(void);
+int mock_saved_log_has_message(const char *msg);
#endif