diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-06-01 14:29:52 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-06-01 14:30:02 (GMT) |
commit | 99e80ea0ac2de2e0c24652c2af8589967996a0d4 (patch) | |
tree | de21a140574ed5005b58f20135a697bf84bdf3b6 /Tests | |
parent | ea82b2c3b5a8ec25c2b8dac1a9c60f5cb455ace0 (diff) | |
parent | 22e5775cde840d8df5a3fc3866d6c87c9f9f53a5 (diff) | |
download | CMake-99e80ea0ac2de2e0c24652c2af8589967996a0d4.zip CMake-99e80ea0ac2de2e0c24652c2af8589967996a0d4.tar.gz CMake-99e80ea0ac2de2e0c24652c2af8589967996a0d4.tar.bz2 |
Merge topic 'cmuvprocesschain-finished'
22e5775cde cmUVProcessChain: Add Finished() method
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8526
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; } |