From: Adam Dickmeiss Date: Tue, 22 Dec 2009 11:53:52 +0000 (+0100) Subject: Display std::runtime_error in test X-Git-Tag: v1.0.23~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6a0163d2b8ca72820e7b795ff27c42647bf36533;p=metaproxy-moved-to-github.git Display std::runtime_error in test --- 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); }