https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/217814
Assisted-by: Antigravity with Gemini >From c496772db1d5d45f0171ef5b821bc16a610e3bdf Mon Sep 17 00:00:00 2001 From: Chandler Carruth <[email protected]> Date: Fri, 21 Aug 2026 01:53:19 +0000 Subject: [PATCH] [clang] Add a timeout to avoid a hang when errors cause a subprocess to stall Assisted-by: Antigravity with Gemini --- clang/test/lit.cfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py index f7ac5d6d6676e..9b7bd1d329d22 100644 --- a/clang/test/lit.cfg.py +++ b/clang/test/lit.cfg.py @@ -160,8 +160,9 @@ def have_host_out_of_process_jit_feature_support(): stdout=subprocess.PIPE, stderr=subprocess.PIPE, input=testcode, + timeout=5, ) - except OSError: + except (OSError, subprocess.TimeoutExpired): return False if clang_repl_cmd.returncode == 0: _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
