diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-05-31 21:21:52 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-05-31 21:21:52 (GMT) |
commit | 22e5775cde840d8df5a3fc3866d6c87c9f9f53a5 (patch) | |
tree | d8b469d16ff672396ef3daa732f26521ba111304 /Tests | |
parent | 26240066084b9cbe37956cee4b3be1e75e144ce5 (diff) | |
download | CMake-22e5775cde840d8df5a3fc3866d6c87c9f9f53a5.zip CMake-22e5775cde840d8df5a3fc3866d6c87c9f9f53a5.tar.gz CMake-22e5775cde840d8df5a3fc3866d6c87c9f9f53a5.tar.bz2 |
cmUVProcessChain: Add Finished() method
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; } |