diff options
author | David Cole <david.cole@kitware.com> | 2011-08-03 14:24:59 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-08-03 14:48:43 (GMT) |
commit | ba4886b717d4c72f4b7c8960862ff44af187d114 (patch) | |
tree | a0dab5ad8bc0eff862648dba9a1761854f8de95c /Source/CTest/cmCTestTestHandler.h | |
parent | 14e54c4c449e2704799ab5283c6c6764472d5a0a (diff) | |
download | CMake-ba4886b717d4c72f4b7c8960862ff44af187d114.zip CMake-ba4886b717d4c72f4b7c8960862ff44af187d114.tar.gz CMake-ba4886b717d4c72f4b7c8960862ff44af187d114.tar.bz2 |
CTest: print failed tests in index order (#11746)
This deterministic ordering makes it easier for a developer
comparing the ctest output of two test runs to see what changed
from run to run.
Thanks to Fraser Hutchison for the patch.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.h')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.h b/Source/CTest/cmCTestTestHandler.h index 3089d35..8e59e59 100644 --- a/Source/CTest/cmCTestTestHandler.h +++ b/Source/CTest/cmCTestTestHandler.h @@ -125,7 +125,16 @@ public: cmCTestTestProperties* Properties; }; - // add configuraitons to a search path for an executable + struct cmCTestTestResultLess + { + bool operator() (const cmCTestTestResult &lhs, + const cmCTestTestResult &rhs) const + { + return lhs.TestCount < rhs.TestCount; + } + }; + + // add configurations to a search path for an executable static void AddConfigurations(cmCTest *ctest, std::vector<std::string> &attempted, std::vector<std::string> &attemptedConfigs, @@ -141,7 +150,7 @@ public: typedef std::vector<cmCTestTestProperties> ListOfTests; protected: - // comput a final test list + // compute a final test list virtual int PreProcessHandler(); virtual int PostProcessHandler(); virtual void GenerateTestCommand(std::vector<std::string>& args); |