diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-11-02 17:52:50 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-11-02 17:52:50 (GMT) |
commit | d47ada823abbed75f20e086176d5345ca0fb965a (patch) | |
tree | dc9d0d3dee184c06c79bdda64bbee352be2c70df /Source/CTest/cmCTestMultiProcessHandler.h | |
parent | 59f6f383e9f87ee39f8cef7984b2993204fbd214 (diff) | |
download | CMake-d47ada823abbed75f20e086176d5345ca0fb965a.zip CMake-d47ada823abbed75f20e086176d5345ca0fb965a.tar.gz CMake-d47ada823abbed75f20e086176d5345ca0fb965a.tar.bz2 |
Added logic to check for cycles in the test dependency graph before any tests are run. Previously a cycle resulted in a segfault from stack overflow.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.h')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h index c99eb3d..16591b0 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.h +++ b/Source/CTest/cmCTestMultiProcessHandler.h @@ -76,6 +76,8 @@ protected: void RemoveTest(int index); //Check if we need to resume an interrupted test set void CheckResume(); + //Check if there are any circular dependencies + bool CheckCycles(); int FindMaxIndex(); inline size_t GetProcessorsUsed(int index); // map from test number to set of depend tests |