Fix copyright lines
[folly.git] / folly / experimental / test / ProgramOptionsTest.cpp
index cd95970c0c3ae0e464f352c71e1ae51dc1e398e2..1c336464d4404c5a73b6d7001d4828152d00b999 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 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.
@@ -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
 
@@ -174,4 +174,5 @@ TEST(ProgramOptionsTest, GNUStyleSubCommandUnrecognizedOptionFirst) {
           "-xy"}));
 }
 
-}}  // namespaces
+} // namespace test
+} // namespace folly