1 #include "mfextensions/Extensions/suppress.hh"
3 #define BOOST_TEST_MODULE suppress_t
4 #include "cetlib/quiet_unit_test.hpp"
5 #include "cetlib_except/exception.h"
7 #define TRACE_NAME "suppress_t"
8 #include "TRACE/tracemf.h"
10 BOOST_AUTO_TEST_SUITE(suppress_t)
12 BOOST_AUTO_TEST_CASE(Suppress)
16 BOOST_REQUIRE(s.match(
"test"));
17 BOOST_REQUIRE(!s.match(
"another_test"));
18 BOOST_REQUIRE(!s.match(
"testing"));
19 BOOST_REQUIRE(!s.match(
"quiz"));
22 BOOST_REQUIRE(!s.match(
"test"));
25 BOOST_REQUIRE(s.match(
"test"));
28 BOOST_AUTO_TEST_SUITE_END()
Suppress messages based on a regular expression