From 85078c9292325d8c0c36007d68becf986bfc97c4 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 18 Jul 2011 14:22:43 +0200 Subject: [PATCH] xmlutil test: display standard exception if thrown --- src/test_xmlutil.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } } -- 1.7.10.4