/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
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