diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-31 14:30:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-08-31 14:30:34 -0400 |
commit | d4f05dcd0e0fe654d64950d70d6d54ff7a6a280e (patch) | |
tree | fd79bbf700c155a6a23a72a84d462aa41d06a008 /src/test/log_test_helpers.h | |
parent | d299c043d405e0ba2f565009270bba012def6191 (diff) | |
download | tor-d4f05dcd0e0fe654d64950d70d6d54ff7a6a280e.tar.gz tor-d4f05dcd0e0fe654d64950d70d6d54ff7a6a280e.zip |
Detect and suppress bug message from zlib compression bomb test
Diffstat (limited to 'src/test/log_test_helpers.h')
-rw-r--r-- | src/test/log_test_helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/log_test_helpers.h b/src/test/log_test_helpers.h index 039c7ae1eb..f33ee67a90 100644 --- a/src/test/log_test_helpers.h +++ b/src/test/log_test_helpers.h @@ -35,6 +35,13 @@ int mock_saved_log_has_entry(void); tt_assert_msg(mock_saved_log_has_message_containing(str), \ "expected log to contain " # str); +#define expect_single_log_msg_containing(str) \ + do { \ + tt_assert_msg(mock_saved_log_has_message_containing(str), \ + "expected log to contain " # str); \ + tt_int_op(smartlist_len(mock_saved_logs()), OP_EQ, 1); \ + } while (0); + #define expect_no_log_msg(str) \ tt_assert_msg(!mock_saved_log_has_message(str), \ "expected log to not contain " # str); |