diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testUVProcessChain.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testUVProcessChain.cxx b/Tests/CMakeLib/testUVProcessChain.cxx index cbb4384..ce6cd6d 100644 --- a/Tests/CMakeLib/testUVProcessChain.cxx +++ b/Tests/CMakeLib/testUVProcessChain.cxx @@ -148,6 +148,10 @@ static bool checkExecution(cmUVProcessChainBuilder& builder, printResults(status, status1); return false; } + if (chain->Finished()) { + std::cout << "Finished() returned true, should be false" << std::endl; + return false; + } if (chain->Wait(6000)) { std::cout << "Wait() returned true, should be false" << std::endl; @@ -159,6 +163,10 @@ static bool checkExecution(cmUVProcessChainBuilder& builder, printResults(status, status2); return false; } + if (chain->Finished()) { + std::cout << "Finished() returned true, should be false" << std::endl; + return false; + } if (!chain->Wait()) { std::cout << "Wait() returned false, should be true" << std::endl; @@ -170,6 +178,10 @@ static bool checkExecution(cmUVProcessChainBuilder& builder, printResults(status, status3); return false; } + if (!chain->Finished()) { + std::cout << "Finished() returned false, should be true" << std::endl; + return false; + } return true; } |