Browse Source

cmCTest: Explicitly specify '.tmp' extension on in-progress log files

Do not depend on `cmGeneratedFileStream` to have this default.
Brad King 5 years ago
parent
commit
09ff1cb650
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmCTest.cxx

+ 1 - 0
Source/cmCTest.cxx

@@ -841,6 +841,7 @@ bool cmCTest::OpenOutputFile(const std::string& path, const std::string& name,
     }
   }
   std::string filename = testingDir + "/" + name;
+  stream.SetTempExt("tmp");
   stream.Open(filename);
   if (!stream) {
     cmCTestLog(this, ERROR_MESSAGE,