Consistency in namespace-closing comments
[folly.git] / folly / experimental / test / ProgramOptionsTest.cpp
index c54dd54b0a8bb9630009db80820778b7aa193e0a..2a662af5565e6a4a1ad2b2e02107d606cb16b841 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -33,7 +33,7 @@ std::string getHelperPath() {
   if (!fs::exists(path)) {
     path = path.parent_path().parent_path() / basename / basename;
   }
-  return path.native();
+  return path.string();
 }
 
 std::string callHelper(ProgramOptionsStyle style,
@@ -55,14 +55,14 @@ 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