ctest: drop incremental progress-only messages from build-and-test output

The cmake progress callback is called with non-negative progress values
to provide incremental updates on "Configuring" and "Generating" steps.
These are useful in interactive views but are just noise in test output.
This commit is contained in:
Brad King
2019-04-12 12:07:31 -04:00
parent 7f83e8033b
commit 81cc3de28e

View File

@@ -126,11 +126,12 @@ public:
cmSystemTools::SetStdoutCallback([&s](std::string const& m) { s += m; });
cmSystemTools::SetStderrCallback([&s](std::string const& m) { s += m; });
this->CM.SetProgressCallback(
[&s](const std::string& msg, float /*unused*/) {
this->CM.SetProgressCallback([&s](const std::string& msg, float prog) {
if (prog < 0) {
s += msg;
s += "\n";
});
}
});
}
~cmCTestBuildAndTestCaptureRAII()