|
|
@ -9,6 +9,9 @@ |
|
|
|
@license LGPL, see file <a href="license.html">COPYING</a> |
|
|
|
@license LGPL, see file <a href="license.html">COPYING</a> |
|
|
|
|
|
|
|
|
|
|
|
$Log$ |
|
|
|
$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 |
|
|
|
Revision 1.4 2004/08/28 16:21:25 marc |
|
|
|
mrw-c++-0.92 (mrw) |
|
|
|
mrw-c++-0.92 (mrw) |
|
|
|
- new file: version.cpp |
|
|
|
- new file: version.cpp |
|
|
@ -40,9 +43,13 @@ public: |
|
|
|
void excTest() { |
|
|
|
void excTest() { |
|
|
|
std::string res = (mrw::Cmd("/bin/false")).execute().result(); |
|
|
|
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_SUITE(ExecTest); |
|
|
|
CPPUNIT_TEST(lsTest); |
|
|
|
CPPUNIT_TEST(lsTest); |
|
|
|
CPPUNIT_TEST_EXCEPTION(excTest, mrw::ExecutionFailedExc); |
|
|
|
CPPUNIT_TEST_EXCEPTION(excTest, mrw::ExecutionFailedExc); |
|
|
|
|
|
|
|
CPPUNIT_TEST_EXCEPTION(unexpectedExc, std::bad_exception); |
|
|
|
CPPUNIT_TEST_SUITE_END(); |
|
|
|
CPPUNIT_TEST_SUITE_END(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(ExecTest); |
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(ExecTest); |
|
|
|