From: Adam Dickmeiss Date: Mon, 18 Jul 2011 12:22:43 +0000 (+0200) Subject: xmlutil test: display standard exception if thrown X-Git-Tag: v1.2.10~14 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=85078c9292325d8c0c36007d68becf986bfc97c4;p=metaproxy-moved-to-github.git xmlutil test: display standard exception if thrown --- diff --git a/src/test_xmlutil.cpp b/src/test_xmlutil.cpp index 13065a1..ae9b571 100644 --- a/src/test_xmlutil.cpp +++ b/src/test_xmlutil.cpp @@ -99,8 +99,13 @@ BOOST_AUTO_TEST_CASE( url_recipe ) xmlFreeDoc(doc); } } + catch ( std::runtime_error &e) { + std::cout << "std::runtime error: " << e.what() << std::endl; + BOOST_CHECK(false); + } catch ( ... ) { - BOOST_CHECK (false); + std::cout << "unknown exception" << std::endl; + BOOST_CHECK(false); } }