From d7c649a4db69003794c11771ae40738e92a36acd Mon Sep 17 00:00:00 2001 From: Andrew Gallagher Date: Fri, 31 Jul 2015 03:31:44 -0700 Subject: [PATCH] folly: fix another test running under buck Reviewed By: @yfeldblum Differential Revision: D2300047 --- folly/test/SubprocessTest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/folly/test/SubprocessTest.cpp b/folly/test/SubprocessTest.cpp index 724dbd24..3b88f5aa 100644 --- a/folly/test/SubprocessTest.cpp +++ b/folly/test/SubprocessTest.cpp @@ -195,8 +195,12 @@ TEST(SimpleSubprocessTest, FdLeakTest) { TEST(ParentDeathSubprocessTest, ParentDeathSignal) { // Find out where we are. + const auto basename = "subprocess_test_parent_death_helper"; 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()); -- 2.34.1