diff options
author | Taylor Yu <catalyst@torproject.org> | 2018-05-03 21:49:19 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2018-05-08 17:59:03 -0500 |
commit | be8306c1fb344d9ff3c03b5dc1bb8815706d4ae7 (patch) | |
tree | 3cc866d337a37754edd15b9d84f826afef90fb8a /src/test/log_test_helpers.h | |
parent | c223377ce60ed07a11e0c3b5af29601722b07bac (diff) | |
download | tor-be8306c1fb344d9ff3c03b5dc1bb8815706d4ae7.tar.gz tor-be8306c1fb344d9ff3c03b5dc1bb8815706d4ae7.zip |
Add expect_no_log_msg_containing()
Diffstat (limited to 'src/test/log_test_helpers.h')
-rw-r--r-- | src/test/log_test_helpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/log_test_helpers.h b/src/test/log_test_helpers.h index 70c584eb37..f5bbfcf3ff 100644 --- a/src/test/log_test_helpers.h +++ b/src/test/log_test_helpers.h @@ -85,6 +85,10 @@ void mock_dump_saved_logs(void); assert_log_predicate(!mock_saved_log_has_message(str), \ "expected log to not contain " # str); +#define expect_no_log_msg_containing(str) \ + assert_log_predicate(!mock_saved_log_has_message_containing(str), \ + "expected log to not contain " # str); + #define expect_log_severity(severity) \ assert_log_predicate(mock_saved_log_has_severity(severity), \ "expected log to contain severity " # severity); |