diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-05-06 17:14:01 -0700 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-06-21 20:48:26 +0200 |
commit | 259371cb60775e8e31d86f1dfc88696916efa770 (patch) | |
tree | c16084c73de4491e33ab24154878ffc34592931d /gr-blocks/lib/qa_set_msg_handler.cc | |
parent | c59ce7d39fd8e15c87befcd6935649f9b6587993 (diff) |
blocks: Replace QA test framework w/ Boost UTF
Diffstat (limited to 'gr-blocks/lib/qa_set_msg_handler.cc')
-rw-r--r-- | gr-blocks/lib/qa_set_msg_handler.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gr-blocks/lib/qa_set_msg_handler.cc b/gr-blocks/lib/qa_set_msg_handler.cc index c5b463ca63..94bd6e4249 100644 --- a/gr-blocks/lib/qa_set_msg_handler.cc +++ b/gr-blocks/lib/qa_set_msg_handler.cc @@ -24,23 +24,22 @@ #include <config.h> #endif -#include <qa_set_msg_handler.h> #include <gnuradio/top_block.h> #include <gnuradio/blocks/head.h> #include <gnuradio/blocks/null_source.h> #include <gnuradio/blocks/null_sink.h> #include <gnuradio/blocks/nop.h> #include <gnuradio/messages/msg_passing.h> -#include <iostream> #include <boost/thread/thread.hpp> +#include <boost/test/unit_test.hpp> +#include <iostream> /* * The gr::block::nop block has been instrumented so that it counts * the number of messages sent to it. We use this feature to confirm * that gr::blocks::nop's call to set_msg_handler is working correctly. */ - -void qa_set_msg_handler::t0() +BOOST_AUTO_TEST_CASE(t0) { static const int NMSGS = 10; @@ -68,5 +67,5 @@ void qa_set_msg_handler::t0() tb->wait(); // Confirm that the nop block received the right number of messages. - CPPUNIT_ASSERT_EQUAL(NMSGS, nop->nmsgs_received()); + BOOST_CHECK_EQUAL(NMSGS, nop->nmsgs_received()); } |