Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64718 - sandbox/SOC/2010/process/libs/process/test
From: fotanus_at_[hidden]
Date: 2010-08-09 21:11:35


Author: fotanus
Date: 2010-08-09 21:11:34 EDT (Mon, 09 Aug 2010)
New Revision: 64718
URL: http://svn.boost.org/trac/boost/changeset/64718

Log:
Added test for shell

Text files modified:
   sandbox/SOC/2010/process/libs/process/test/child.cpp | 13 +++++++++++++
   1 files changed, 13 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2010/process/libs/process/test/child.cpp
==============================================================================
--- sandbox/SOC/2010/process/libs/process/test/child.cpp (original)
+++ sandbox/SOC/2010/process/libs/process/test/child.cpp 2010-08-09 21:11:34 EDT (Mon, 09 Aug 2010)
@@ -494,3 +494,16 @@
     BOOST_CHECK_EQUAL(exit_code, EXIT_SUCCESS);
 #endif
 }
+
+BOOST_AUTO_TEST_CASE(test_shell)
+{
+ child c = bp::shell(get_helpers_path() + " exit_success")
+
+ int exit_code = c.wait();
+#if defined(BOOST_POSIX_API)
+ BOOST_REQUIRE(WIFEXITED(exit_code));
+ BOOST_CHECK_EQUAL(WEXITSTATUS(exit_code), EXIT_SUCCESS);
+#elif defined(BOOST_WINDOWS_API)
+ BOOST_CHECK_EQUAL(exit_code, EXIT_SUCCESS);
+#endif
+}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk