Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65181 - in sandbox/SOC/2010/process: boost/process libs/process/example libs/process/test
From: boris_at_[hidden]
Date: 2010-09-01 16:08:26


Author: bschaeling
Date: 2010-09-01 16:08:24 EDT (Wed, 01 Sep 2010)
New Revision: 65181
URL: http://svn.boost.org/trac/boost/changeset/65181

Log:
Renamed behavior::dummy to behavior::null
Text files modified:
   sandbox/SOC/2010/process/boost/process/stream_behavior.hpp | 8 ++++----
   sandbox/SOC/2010/process/libs/process/example/create_child_context.cpp | 10 +++++-----
   sandbox/SOC/2010/process/libs/process/test/child.cpp | 12 ++++++------
   3 files changed, 15 insertions(+), 15 deletions(-)

Modified: sandbox/SOC/2010/process/boost/process/stream_behavior.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/stream_behavior.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/stream_behavior.hpp 2010-09-01 16:08:24 EDT (Wed, 01 Sep 2010)
@@ -294,12 +294,12 @@
  * A child process will be able to use streams. But data written to an
  * output stream is discarded and data read from an input stream is 0.
  */
-class dummy : public stream
+class null : public stream
 {
 public:
     enum stream_type { input_stream, output_stream };
 
- dummy(stream_type stream)
+ null(stream_type stream)
     {
 #if defined(BOOST_POSIX_API)
         std::string filename = (stream == input_stream) ? "/dev/zero" :
@@ -321,9 +321,9 @@
 #endif
     }
 
- static boost::shared_ptr<dummy> create(stream_type stream)
+ static boost::shared_ptr<null> create(stream_type stream)
     {
- return boost::make_shared<dummy>(stream);
+ return boost::make_shared<null>(stream);
     }
 
     handle get_child_end()

Modified: sandbox/SOC/2010/process/libs/process/example/create_child_context.cpp
==============================================================================
--- sandbox/SOC/2010/process/libs/process/example/create_child_context.cpp (original)
+++ sandbox/SOC/2010/process/libs/process/example/create_child_context.cpp 2010-09-01 16:08:24 EDT (Wed, 01 Sep 2010)
@@ -30,14 +30,14 @@
 //]
 }
 
-void create_child_context_dummy()
+void create_child_context_null()
 {
-//[create_child_context_dummy
+//[create_child_context_null
     std::string exe = boost::process::find_executable_in_path("hostname");
     std::vector<std::string> args;
     boost::process::context ctx;
- ctx.stdout_behavior = boost::process::behavior::dummy::create(
- boost::process::behavior::dummy::output_stream);
+ ctx.stdout_behavior = boost::process::behavior::null::create(
+ boost::process::behavior::null::output_stream);
     boost::process::create_child(exe, args, ctx);
 //]
 }
@@ -59,6 +59,6 @@
 int main()
 {
     create_child_context_configuration();
- create_child_context_dummy();
+ create_child_context_null();
     create_child_context_pipe();
 }

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-09-01 16:08:24 EDT (Wed, 01 Sep 2010)
@@ -554,7 +554,7 @@
 #endif
 }
 
-BOOST_AUTO_TEST_CASE(test_dummy_stdin)
+BOOST_AUTO_TEST_CASE(test_null_stdin)
 {
     check_helpers();
 
@@ -562,7 +562,7 @@
     args.push_back("is-nul-stdin");
 
     bp::context ctx;
- ctx.stdin_behavior = bpb::dummy::create(bpb::dummy::input_stream);
+ ctx.stdin_behavior = bpb::null::create(bpb::null::input_stream);
 
     bp::child c = bp::create_child(get_helpers_path(), args, ctx);
 
@@ -575,7 +575,7 @@
 #endif
 }
 
-BOOST_AUTO_TEST_CASE(test_dummy_stdout)
+BOOST_AUTO_TEST_CASE(test_null_stdout)
 {
     check_helpers();
 
@@ -583,7 +583,7 @@
     args.push_back("is-nul-stdout");
 
     bp::context ctx;
- ctx.stdout_behavior = bpb::dummy::create(bpb::dummy::output_stream);
+ ctx.stdout_behavior = bpb::null::create(bpb::null::output_stream);
 
     bp::child c = bp::create_child(get_helpers_path(), args, ctx);
 
@@ -596,7 +596,7 @@
 #endif
 }
 
-BOOST_AUTO_TEST_CASE(test_dummy_stderr)
+BOOST_AUTO_TEST_CASE(test_null_stderr)
 {
     check_helpers();
 
@@ -604,7 +604,7 @@
     args.push_back("is-nul-stderr");
 
     bp::context ctx;
- ctx.stderr_behavior = bpb::dummy::create(bpb::dummy::output_stream);
+ ctx.stderr_behavior = bpb::null::create(bpb::null::output_stream);
 
     bp::child c = bp::create_child(get_helpers_path(), args, ctx);
 


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