mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Add Assert-Macros for the TestLogger
Also add a Clear() function to clear existing log content.
This commit is contained in:
parent
24b1df98e5
commit
252d809256
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,12 @@
|
|||
#include <boost/test/test_tools.hpp>
|
||||
#include <future>
|
||||
|
||||
#define CHECK_LOG_MESSAGE(pattern, timeout) BOOST_CHECK(ExpectLogPattern(pattern, timeout))
|
||||
#define REQUIRE_LOG_MESSAGE(pattern, timeout) BOOST_REQUIRE(ExpectLogPattern(pattern, timeout))
|
||||
|
||||
#define CHECK_NO_LOG_MESSAGE(pattern, timeout) BOOST_CHECK(!ExpectLogPattern(pattern, timeout))
|
||||
#define REQUIRE_NO_LOG_MESSAGE(pattern, timeout) BOOST_REQUIRE(!ExpectLogPattern(pattern, timeout))
|
||||
|
||||
namespace icinga {
|
||||
|
||||
class TestLogger : public Logger
|
||||
|
|
|
|||
Loading…
Reference in a new issue