From be8306c1fb344d9ff3c03b5dc1bb8815706d4ae7 Mon Sep 17 00:00:00 2001 From: Taylor Yu Date: Thu, 3 May 2018 21:49:19 -0500 Subject: 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 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); -- cgit v1.2.3-54-g00ecf