diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2017-04-21 19:51:14 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2017-04-24 19:42:40 (GMT) |
commit | 851b6c1595363c8916f24b7da8db991cf6fc3f25 (patch) | |
tree | 11c951ef1947dc63ef7669dbc9d3ef2d4ccb3437 /Source/CTest/cmCTestTestHandler.cxx | |
parent | 25a7f14fe2ddd3555c8d8a8f33dea7abbd7061e6 (diff) | |
download | CMake-851b6c1595363c8916f24b7da8db991cf6fc3f25.zip CMake-851b6c1595363c8916f24b7da8db991cf6fc3f25.tar.gz CMake-851b6c1595363c8916f24b7da8db991cf6fc3f25.tar.bz2 |
cmCTestTestHandler: indicate why a test did not run
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index f059ff1..d3ec9a4 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -523,17 +523,22 @@ int cmCTestTestHandler::ProcessHandler() if (!disabledTests.empty()) { cmGeneratedFileStream ofs; cmCTestLog(this->CTest, HANDLER_OUTPUT, std::endl - << "The following tests are disabled and did not run:" - << std::endl); + << "The following tests did not run:" << std::endl); this->StartLogFile("TestsDisabled", ofs); + const char* disabled_reason; for (std::vector<cmCTestTestHandler::cmCTestTestResult>::iterator dtit = disabledTests.begin(); dtit != disabledTests.end(); ++dtit) { ofs << dtit->TestCount << ":" << dtit->Name << std::endl; + if (dtit->CompletionStatus == "Disabled") { + disabled_reason = "Disabled"; + } else { + disabled_reason = "Skipped"; + } cmCTestLog(this->CTest, HANDLER_OUTPUT, "\t" << std::setw(3) << dtit->TestCount << " - " << dtit->Name - << std::endl); + << " (" << disabled_reason << ")" << std::endl); } } |