X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.test.cc;h=d3900627f5f4a0122c769ea6a5fef677db0931bb;hb=24ccc14a000ffeceb9e5b6d02f54d2e971a3aee8;hp=3e5142878e2c364255adb97f2e326d35d20d4b7d;hpb=15ac5ae4166db4387b4a219b7c42f7fc5a9681a6;p=senf.git diff --git a/Utils/Exception.test.cc b/Utils/Exception.test.cc index 3e51428..d390062 100644 --- a/Utils/Exception.test.cc +++ b/Utils/Exception.test.cc @@ -41,7 +41,7 @@ BOOST_AUTO_UNIT_TEST(errnoException) { try { try { - throw senf::SystemException("::open()", ENOENT); + throw senf::SystemException("::open()", ENOENT) << "\nmore"; } catch(senf::Exception & e) { e << "\nx=" << 1 << boost::format("\ny=%d") % 2; @@ -50,7 +50,8 @@ BOOST_AUTO_UNIT_TEST(errnoException) } catch (senf::SystemException & e) { BOOST_CHECK_EQUAL( e.errorNumber(), ENOENT ); - BOOST_CHECK_EQUAL( e.errorString(), "No such file or directory"); + BOOST_CHECK_EQUAL( e.errorString(), "No such file or directory" ); + BOOST_CHECK_EQUAL( e.what(), "[No such file or directory] ::open()\nmore\nx=1\ny=2" ); } }