diff options
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index c8e2185..a576960 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -535,10 +535,11 @@ public: FragmentCompare(cmFileTimeComparison* ftc): FTC(ftc) {} bool operator()(std::string const& l, std::string const& r) { - // Order files by modification time. If comparison fails, just - // use lexicographic order (should not happen in our use case). + // Order files by modification time. Use lexicographic order + // among files with the same time. int result; - if(this->FTC->FileTimeCompare(l.c_str(), r.c_str(), &result)) + if(this->FTC->FileTimeCompare(l.c_str(), r.c_str(), &result) && + result != 0) { return result < 0; } |