[clang] [clang] Add a timeout to avoid a hang when errors cause a subprocess to stall (PR #217814)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 20 21:59:57 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Chandler Carruth (chandlerc)
<details>
<summary>Changes</summary>
Assisted-by: Antigravity with Gemini
---
Full diff: https://github.com/llvm/llvm-project/pull/217814.diff
1 Files Affected:
- (modified) clang/test/lit.cfg.py (+2-1)
``````````diff
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:
``````````
</details>
https://github.com/llvm/llvm-project/pull/217814
More information about the cfe-commits
mailing list