/** @file $Id$ $Date$ $Author$ @copy © Marc Wäckerlin @license LGPL, see file COPYING $Log$ Revision 1.9 2005/04/19 18:48:00 marc new feature PartialExec Revision 1.8 2005/04/07 20:55:21 marc Oops, there's a make distcheck...? Now it works. Revision 1.7 2004/12/20 13:21:21 marc exception tests: each exception must be in an own test case Revision 1.6 2004/12/14 20:30:10 marc added possibility to pass string to stdin of child process 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.cxx - new file header for all sources - work around warning in mrw::auto - possibility to compile without log4cxx - work around bugs in demangle.h and libiberty.h - corrections in documentation - added simple tracing mechanism - more warnings - small corrections in Auto<>::Free and a new test for it - possibility to compile without stack trace */ #include #include #include #include #include #include #include #include #include #include class ExecTest: public CppUnit::TestFixture { public: void lsTest() { std::string res = (mrw::Cmd("/bin/ls"), "-l", std::string(getenv("srcdir"))+"/..").execute(); CPPUNIT_ASSERT(res.find("COPYING")