Skip to content

Commit

Permalink
gcc compile fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Jun 26, 2023
1 parent cb5b5a2 commit 6c6295e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/process/detail/windows/basic_pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ basic_pipe<Char, Traits>::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
Expand Down
4 changes: 4 additions & 0 deletions test/v2/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

0 comments on commit 6c6295e

Please sign in to comment.