diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-04 10:44:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-04 10:44:36 -0400 |
commit | 94b04d6c64ec998a9117d65a156888fa3af188e5 (patch) | |
tree | 08ed94f695e8c1b9abef413a8bfee98c8be07be8 /src/test/log_test_helpers.h | |
parent | 1c62adb65baa99c92f937318c452955306301643 (diff) | |
parent | 81f4223329a709e5138532b037a58c118b30dd7f (diff) | |
download | tor-94b04d6c64ec998a9117d65a156888fa3af188e5.tar.gz tor-94b04d6c64ec998a9117d65a156888fa3af188e5.zip |
Merge branch 'bug24104_029_squashed'
Diffstat (limited to 'src/test/log_test_helpers.h')
-rw-r--r-- | src/test/log_test_helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/log_test_helpers.h b/src/test/log_test_helpers.h index fc9768c125..dcd3297346 100644 --- a/src/test/log_test_helpers.h +++ b/src/test/log_test_helpers.h @@ -24,6 +24,7 @@ void teardown_capture_of_logs(void); int mock_saved_log_has_message(const char *msg); int mock_saved_log_has_message_containing(const char *msg); +int mock_saved_log_has_message_not_containing(const char *msg); int mock_saved_log_has_severity(int severity); int mock_saved_log_has_entry(void); int mock_saved_log_n_entries(void); @@ -46,6 +47,10 @@ void mock_dump_saved_logs(void); assert_log_predicate(mock_saved_log_has_message_containing(str), \ "expected log to contain " # str); +#define expect_log_msg_not_containing(str) \ + assert_log_predicate(mock_saved_log_has_message_not_containing(str), \ + "expected log to not contain " # str); + #define expect_log_msg_containing_either(str1, str2) \ assert_log_predicate(mock_saved_log_has_message_containing(str1) || \ mock_saved_log_has_message_containing(str2), \ |