diff --git a/include/boost/process/detail/windows/basic_pipe.hpp b/include/boost/process/detail/windows/basic_pipe.hpp index 3cf904474..0fe524d21 100644 --- a/include/boost/process/detail/windows/basic_pipe.hpp +++ b/include/boost/process/detail/windows/basic_pipe.hpp @@ -158,7 +158,7 @@ basic_pipe::basic_pipe(const std::string & name) ::boost::process::detail::throw_last_error("create_named_pipe() failed"); ::boost::winapi::HANDLE_ sink = boost::winapi::create_file( - name.c_str(), + name_.c_str(), ::boost::winapi::GENERIC_WRITE_, 0, nullptr, OPEN_EXISTING_, FILE_FLAG_OVERLAPPED_, //to allow read diff --git a/test/v2/process.cpp b/test/v2/process.cpp index 2d11ca98a..177fd0ad3 100644 --- a/test/v2/process.cpp +++ b/test/v2/process.cpp @@ -549,6 +549,8 @@ BOOST_AUTO_TEST_CASE(exit_code_as_error) BOOST_CHECK_EQUAL(called, 3); } +#if !defined(BOOST_PROCESS_V2_WINDOWS) || !__GNUC__ + BOOST_AUTO_TEST_CASE(bind_launcher) { using boost::unit_test::framework::master_test_suite; @@ -589,5 +591,7 @@ BOOST_AUTO_TEST_CASE(bind_launcher) BOOST_CHECK_MESSAGE(proc.exit_code() == 0, proc.exit_code() << " from " << proc.native_exit_code()); } +#endif + BOOST_AUTO_TEST_SUITE_END();