From: Andrew Gallagher Date: Fri, 31 Jul 2015 10:31:44 +0000 (-0700) Subject: folly: fix another test running under buck X-Git-Tag: v0.53.0~23 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d7c649a4db69003794c11771ae40738e92a36acd;p=folly.git folly: fix another test running under buck Reviewed By: @yfeldblum Differential Revision: D2300047 --- 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());