Commit d7c649a4 authored by Andrew Gallagher's avatar Andrew Gallagher Committed by facebook-github-bot-4

folly: fix another test running under buck

Reviewed By: @yfeldblum

Differential Revision: D2300047
parent 932cba0f
...@@ -195,8 +195,12 @@ TEST(SimpleSubprocessTest, FdLeakTest) { ...@@ -195,8 +195,12 @@ TEST(SimpleSubprocessTest, FdLeakTest) {
TEST(ParentDeathSubprocessTest, ParentDeathSignal) { TEST(ParentDeathSubprocessTest, ParentDeathSignal) {
// Find out where we are. // Find out where we are.
const auto basename = "subprocess_test_parent_death_helper";
auto helper = fs::executable_path(); auto helper = fs::executable_path();
helper.remove_filename() /= "subprocess_test_parent_death_helper"; helper.remove_filename() /= basename;
if (!fs::exists(helper)) {
helper = helper.parent_path().parent_path() / basename / basename;
}
fs::path tempFile(fs::temp_directory_path() / fs::unique_path()); fs::path tempFile(fs::temp_directory_path() / fs::unique_path());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment