summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-29 18:45:21 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-29 19:10:12 (GMT)
commit80c2c9d14cf1c1a8f162e119bd00d5f483a94af2 (patch)
tree273a15083c42453ee3265a3ce8263bf7a74a3e3e /Source/cmCTest.h
parent0187e522448c8fe92c15d4a983afac36950d1d59 (diff)
downloadCMake-80c2c9d14cf1c1a8f162e119bd00d5f483a94af2.zip
CMake-80c2c9d14cf1c1a8f162e119bd00d5f483a94af2.tar.gz
CMake-80c2c9d14cf1c1a8f162e119bd00d5f483a94af2.tar.bz2
ctest: Add --repeat-until-pass option
Add an option to re-run tests if they fail. This will help tolerate sporadic failures. Issue: #17010 Co-Author: Ben Boeckel <ben.boeckel@kitware.com> Co-Author: Chuck Atkins <chuck.atkins@kitware.com>
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 82a6f4c..c6b8928 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -433,8 +433,13 @@ public:
/** Return the number of times a test should be run */
int GetTestRepeat() const;
- /** Return true if test should run until fail */
- bool GetRepeatUntilFail() const;
+ enum class Rerun
+ {
+ Never,
+ UntilFail,
+ UntilPass,
+ };
+ Rerun GetRerunMode() const;
void GenerateSubprojectsOutput(cmXMLWriter& xml);
std::vector<std::string> GetLabelsForSubprojects();