CMake/Source/CTest
Brad King d1976cd1f2 CTest: Fix timeout when grandchild keeps pipes open
When a test's process creates its own child and exits, the grandchild
may keep pipes open.  Fix CTest logic to correctly timeout if the
grandchild does not exit and close the pipes before the timeout expires.
This was broken by commit b5e21d7d2e (CTest: Re-implement test process
handling using libuv, 2017-12-10, v3.11.0-rc1~117^2) which added an
unnecessary condition to the timeout handling.

Fixes: #20116
2020-01-14 10:29:05 -05:00
..
cmCTestBinPacker.cxx CTest: Rename hardware -> resources for source code 2019-11-05 12:08:35 -05:00
cmCTestBinPacker.h CTest: Rename hardware -> resources for source code 2019-11-05 12:08:35 -05:00
cmCTestBuildAndTestHandler.cxx GlobalGenerator family: modernize memory management 2020-01-07 11:03:11 +01:00
cmCTestBuildAndTestHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestBuildCommand.cxx GlobalGenerator family: modernize memory management 2020-01-07 11:03:11 +01:00
cmCTestBuildCommand.h GlobalGenerator family: modernize memory management 2020-01-07 11:03:11 +01:00
cmCTestBuildHandler.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestBuildHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestBZR.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestBZR.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestCommand.h Use C++11 nullptr 2017-08-24 23:39:47 +02:00
cmCTestConfigureCommand.cxx GlobalGenerator family: modernize memory management 2020-01-07 11:03:11 +01:00
cmCTestConfigureCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestConfigureHandler.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestConfigureHandler.h clang-tidy: Replace typedef with using 2019-09-04 18:03:01 +02:00
cmCTestCoverageCommand.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestCoverageCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestCoverageHandler.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestCoverageHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestCurl.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestCurl.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestCVS.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestCVS.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestEmptyBinaryDirectoryCommand.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestEmptyBinaryDirectoryCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestGenericHandler.cxx clang-tidy: modernize-use-auto 2019-09-10 22:21:41 +02:00
cmCTestGenericHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestGIT.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestGIT.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestGlobalVC.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestGlobalVC.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestHandlerCommand.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestHandlerCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestHG.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestHG.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestLaunch.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestLaunch.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestMemCheckCommand.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestMemCheckCommand.h Merge topic 'ctest-argument-parser' 2019-09-26 09:22:13 -04:00
cmCTestMemCheckHandler.cxx ctest: add support for memcheck using Dr. Memory 2019-12-10 14:42:30 -05:00
cmCTestMemCheckHandler.h ctest: add support for memcheck using Dr. Memory 2019-12-10 14:42:30 -05:00
cmCTestMultiProcessHandler.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestMultiProcessHandler.h cmCTestMultiProcessHandler: Hold repeat mode as a member 2019-11-07 14:14:36 -05:00
cmCTestP4.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestP4.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestReadCustomFilesCommand.cxx Meta: modernize old-fashioned loops to range-based for (CTest). 2017-09-14 16:11:58 +03:00
cmCTestReadCustomFilesCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestResourceAllocator.cxx CTest: Rename hardware -> resources for source code 2019-11-05 12:08:35 -05:00
cmCTestResourceAllocator.h CTest: Rename hardware -> resources for source code 2019-11-05 12:08:35 -05:00
cmCTestResourceGroupsLexerHelper.cxx CTest: Rename "Processes" lexer to "ResourceGroups" 2019-11-05 12:08:35 -05:00
cmCTestResourceGroupsLexerHelper.h CTest: Rename "Processes" lexer to "ResourceGroups" 2019-11-05 12:08:35 -05:00
cmCTestResourceSpec.cxx CTest: Improve error handling when reading resource spec file 2019-12-27 10:53:52 -05:00
cmCTestResourceSpec.h CTest: Improve error handling when reading resource spec file 2019-12-27 10:53:52 -05:00
cmCTestRunScriptCommand.cxx Source sweep: Replace std::ostringstream when used with a single append 2019-08-23 18:52:33 +02:00
cmCTestRunScriptCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestRunTest.cxx CTest: Rename internal APIs for --repeat options 2019-11-07 14:14:28 -05:00
cmCTestRunTest.h CTest: Rename internal APIs for --repeat options 2019-11-07 14:14:28 -05:00
cmCTestScriptHandler.cxx ctest: Populate CTEST_CONFIGURATION_TYPE from the -C command line when set 2019-12-09 13:10:59 -05:00
cmCTestScriptHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestSleepCommand.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestSleepCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestStartCommand.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestStartCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestSubmitCommand.cxx Refactoring: suppress cmEraseIf in favor of cm::erase_if 2020-01-09 11:19:20 +01:00
cmCTestSubmitCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestSubmitHandler.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestSubmitHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestSVN.cxx Refactoring: use append functions from cmext/algorithm 2019-12-17 10:44:02 +01:00
cmCTestSVN.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestTestCommand.cxx ctest_test: Add option to REPEAT tests 2019-11-07 14:21:18 -05:00
cmCTestTestCommand.h ctest_test: Add option to REPEAT tests 2019-11-07 14:21:18 -05:00
cmCTestTestHandler.cxx Merge topic 'ctest-resource-allocation-spec-message' 2019-12-28 19:03:00 -05:00
cmCTestTestHandler.h ctest_test: Add option to REPEAT tests 2019-11-07 14:21:18 -05:00
cmCTestUpdateCommand.cxx cmCTest*Command: Port to cmArgumentParser 2019-09-20 13:27:30 +02:00
cmCTestUpdateCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestUpdateHandler.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestUpdateHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestUploadCommand.cxx Refactoring: suppress cmEraseIf in favor of cm::erase_if 2020-01-09 11:19:20 +01:00
cmCTestUploadCommand.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestUploadHandler.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestUploadHandler.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestVC.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmCTestVC.h ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDE 2019-05-07 10:45:47 -04:00
cmParseBlanketJSCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseBlanketJSCoverage.h clang-tidy: Blacklist violations for version 8 2019-07-30 12:38:30 +02:00
cmParseCacheCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseCacheCoverage.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseCoberturaCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseCoberturaCoverage.h Use quotes for non-system includes 2017-04-11 22:35:21 +02:00
cmParseDelphiCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseDelphiCoverage.h Use quotes for non-system includes 2017-04-11 22:35:21 +02:00
cmParseGTMCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseGTMCoverage.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseJacocoCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseJacocoCoverage.h Use quotes for non-system includes 2017-04-11 22:35:21 +02:00
cmParseMumpsCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParseMumpsCoverage.h Use quotes for non-system includes 2017-04-11 22:35:21 +02:00
cmParsePHPCoverage.cxx Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00
cmParsePHPCoverage.h Use quotes for non-system includes 2017-04-11 22:35:21 +02:00
cmProcess.cxx CTest: Fix timeout when grandchild keeps pipes open 2020-01-14 10:29:05 -05:00
cmProcess.h Revise include order using clang-format-6.0 2019-10-01 12:26:36 -04:00