Browse Source

Merge topic 'ctest-launch-stdin' into release-4.3

0cc24534d7 ctest --launch: Restore sharing of stdin with child process

Acked-by: Kitware Robot <[email protected]>
Acked-by: Martin Duffy <[email protected]>
Merge-request: !11709
Brad King 2 weeks ago
parent
commit
0d341bf6b8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/CTest/cmCTestLaunch.cxx

+ 3 - 0
Source/CTest/cmCTestLaunch.cxx

@@ -210,6 +210,9 @@ void cmCTestLaunch::RunChild()
   cmUVProcessChainBuilder builder;
   builder.AddCommand(this->RealArgV);
 
+  // We always share the input pipe.
+  builder.SetExternalStream(cmUVProcessChainBuilder::Stream_INPUT, stdin);
+
   cmsys::ofstream fout;
   cmsys::ofstream ferr;
   if (this->Reporter.Passthru) {