From 6bc3bcc7555174da4ca2ccb2f8150593013126f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 13 Oct 2004 10:43:11 +0000 Subject: [PATCH] test for bad exception specification --- mrw/exec_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mrw/exec_test.cpp b/mrw/exec_test.cpp index 9d4d7db..fe0e6e1 100644 --- a/mrw/exec_test.cpp +++ b/mrw/exec_test.cpp @@ -9,6 +9,9 @@ @license LGPL, see file COPYING $Log$ + Revision 1.5 2004/10/13 10:43:11 marc + test for bad exception specification + Revision 1.4 2004/08/28 16:21:25 marc mrw-c++-0.92 (mrw) - new file: version.cpp @@ -40,9 +43,13 @@ public: void excTest() { std::string res = (mrw::Cmd("/bin/false")).execute().result(); } + void unexpectedExc() throw(std::bad_exception) { + std::string res = (mrw::Cmd("/bin/false")).execute().result(); + } CPPUNIT_TEST_SUITE(ExecTest); CPPUNIT_TEST(lsTest); CPPUNIT_TEST_EXCEPTION(excTest, mrw::ExecutionFailedExc); + CPPUNIT_TEST_EXCEPTION(unexpectedExc, std::bad_exception); CPPUNIT_TEST_SUITE_END(); }; CPPUNIT_TEST_SUITE_REGISTRATION(ExecTest);