File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717#include < boost/smart_ptr/scoped_array.hpp>
1818#include < boost/thread/mutex.hpp>
1919#include < boost/thread/lock_guard.hpp>
20+ #include < boost/test/unit_test.hpp>
2021
2122BOOST_FORCEINLINE void boost_forceinline_test ()
2223{}
@@ -104,4 +105,25 @@ void lock_guard_finiteLifetime(boost::mutex& m)
104105{
105106 // cppcheck-suppress unusedScopedObject
106107 boost::lock_guard<boost::mutex>{ m };
107- }
108+ }
109+
110+ BOOST_AUTO_TEST_SUITE (my_auto_test_suite)
111+
112+ BOOST_AUTO_TEST_CASE(test_message_macros)
113+ {
114+ bool my_bool = false ;
115+ BOOST_WARN_MESSAGE (my_bool, " warn" );
116+ BOOST_CHECK_MESSAGE (my_bool, " check" );
117+ BOOST_REQUIRE_MESSAGE (my_bool, " require" );
118+
119+ BOOST_WARN_MESSAGE (my_bool, " my_bool was: " << my_bool);
120+ }
121+
122+ using test_types_w_tuples = std::tuple<int , long , unsigned char >;
123+ BOOST_AUTO_TEST_CASE_TEMPLATE (my_tuple_test, T, test_types_w_tuples)
124+ {
125+ // cppcheck-suppress valueFlowBailoutIncompleteVar
126+ BOOST_TEST (sizeof (T) == 4U );
127+ }
128+
129+ BOOST_AUTO_TEST_SUITE_END ()
You can’t perform that action at this time.
0 commit comments