/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <folly/FileUtil.h>
#include <folly/Subprocess.h>
#include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/GTest.h>
#include <glog/logging.h>
-#include <gtest/gtest.h>
namespace folly { namespace test {
if (!fs::exists(path)) {
path = path.parent_path().parent_path() / basename / basename;
}
- return path.native();
+ return path.string();
}
std::string callHelper(ProgramOptionsStyle style,
break;
}
- Subprocess proc(allArgs, Subprocess::pipeStdout(), nullptr, &env);
+ Subprocess proc(allArgs, Subprocess::Options().pipeStdout(), nullptr, &env);
auto p = proc.communicate();
EXPECT_EQ(0, proc.wait().exitStatus());
return p.first;
}
-} // namespace
+} // namespace
// name value
"-xy"}));
}
-}} // namespaces
+} // namespace test
+} // namespace folly