[tor-commits] [tor/master] Add expect_no_log_msg_containing()

nickm at torproject.org nickm at torproject.org
Fri May 11 22:17:19 UTC 2018


commit be8306c1fb344d9ff3c03b5dc1bb8815706d4ae7
Author: Taylor Yu <catalyst at torproject.org>
Date:   Thu May 3 21:49:19 2018 -0500

    Add expect_no_log_msg_containing()
---
 src/test/log_test_helpers.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/log_test_helpers.h b/src/test/log_test_helpers.h
index 70c584eb3..f5bbfcf3f 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);





More information about the tor-commits mailing list