Skip to content

Commit 5673c43

Browse files
committed
Support Boost 1.88.0
1 parent 22e2a30 commit 5673c43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testutils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ static int execAppInternal(const char *appPath, const char *const *args, std::st
444444
}
445445

446446
#if defined(CPP_UTILITIES_BOOST_PROCESS)
447-
auto path = enableSearchPath ? boost::process::search_path(appPath) : boost::process::filesystem::path(appPath);
447+
auto path = enableSearchPath ? boost::process::v1::search_path(appPath) : boost::process::v1::filesystem::path(appPath);
448448
auto ctx = boost::asio::io_context();
449-
auto group = boost::process::group();
449+
auto group = boost::process::v1::group();
450450
auto argsAsVector =
451451
#if defined(PLATFORM_WINDOWS)
452452
std::vector<std::wstring>();
@@ -467,12 +467,12 @@ static int execAppInternal(const char *appPath, const char *const *args, std::st
467467
}
468468
}
469469
auto outputBuffer = boost::asio::streambuf(), errorBuffer = boost::asio::streambuf();
470-
auto env = boost::process::environment(boost::this_process::environment());
470+
auto env = boost::process::v1::environment(boost::this_process::environment());
471471
if (!newProfilingPath.empty()) {
472472
env["LLVM_PROFILE_FILE"] = newProfilingPath;
473473
}
474474
auto child
475-
= boost::process::child(ctx, group, path, argsAsVector, env, boost::process::std_out > outputBuffer, boost::process::std_err > errorBuffer);
475+
= boost::process::v1::child(ctx, group, path, argsAsVector, env, boost::process::v1::std_out > outputBuffer, boost::process::v1::std_err > errorBuffer);
476476
if (timeout > 0) {
477477
ctx.run_for(std::chrono::milliseconds(timeout));
478478
} else {

0 commit comments

Comments
 (0)