mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Add expect_log_msg_containing_either3() and expect_log_msg_containing_either4()
This commit is contained in:
parent
e4ef9f7491
commit
cccc08ad56
@ -51,6 +51,21 @@ void mock_dump_saved_logs(void);
|
|||||||
mock_saved_log_has_message_containing(str2), \
|
mock_saved_log_has_message_containing(str2), \
|
||||||
"expected log to contain " # str1 " or " # str2);
|
"expected log to contain " # str1 " or " # str2);
|
||||||
|
|
||||||
|
#define expect_log_msg_containing_either3(str1, str2, str3) \
|
||||||
|
assert_log_predicate3(mock_saved_log_has_message_containing(str1) || \
|
||||||
|
(mock_saved_log_has_message_containing(str2) || \
|
||||||
|
mock_saved_log_has_message_containing(str3), \
|
||||||
|
"expected log to contain " # str1 " or " # str2 " or " # str3);
|
||||||
|
|
||||||
|
#define expect_log_msg_containing_either4(str1, str2, str3, str4) \
|
||||||
|
assert_log_predicate4(mock_saved_log_has_message_containing(str1) || \
|
||||||
|
(mock_saved_log_has_message_containing(str2) || \
|
||||||
|
(mock_saved_log_has_message_containing(str3) || \
|
||||||
|
mock_saved_log_has_message_containing(str4), \
|
||||||
|
"expected log to contain " # str1 " or " # str2 " or " # str3 " or " # str4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define expect_single_log_msg(str) \
|
#define expect_single_log_msg(str) \
|
||||||
do { \
|
do { \
|
||||||
\
|
\
|
||||||
|
Loading…
Reference in New Issue
Block a user