From 6a0163d2b8ca72820e7b795ff27c42647bf36533 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 22 Dec 2009 12:53:52 +0100 Subject: [PATCH] Display std::runtime_error in test --- src/test_filter_frontend_net.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test_filter_frontend_net.cpp b/src/test_filter_frontend_net.cpp index df80938..273d7cc 100644 --- a/src/test_filter_frontend_net.cpp +++ b/src/test_filter_frontend_net.cpp @@ -64,6 +64,10 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_1 ) mp::filter::FrontendNet nf; } } + catch (std::runtime_error &e) { + std::cerr << "std::runtime error: " << e.what() << std::endl; + BOOST_CHECK(false); + } catch ( ... ) { BOOST_CHECK (false); } @@ -103,6 +107,10 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_2 ) } } } + catch (std::runtime_error &e) { + std::cerr << "std::runtime error: " << e.what() << std::endl; + BOOST_CHECK(false); + } catch ( ... ) { BOOST_CHECK (false); } @@ -134,6 +142,10 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 ) } BOOST_CHECK(true); } + catch (std::runtime_error &e) { + std::cerr << "std::runtime error: " << e.what() << std::endl; + BOOST_CHECK(false); + } catch ( ... ) { BOOST_CHECK (false); } -- 1.7.10.4