[clang] 83d12c2 - [clang] Add a timeout to avoid a hang when errors cause a subprocess to stall (#217814)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 21 11:02:54 PDT 2026
Author: Chandler Carruth
Date: 2026-08-21T11:02:49-07:00
New Revision: 83d12c2af9c05d9792a9031854ab454c2be170db
URL: https://github.com/llvm/llvm-project/commit/83d12c2af9c05d9792a9031854ab454c2be170db
DIFF: https://github.com/llvm/llvm-project/commit/83d12c2af9c05d9792a9031854ab454c2be170db.diff
LOG: [clang] Add a timeout to avoid a hang when errors cause a subprocess to stall (#217814)
Assisted-by: Antigravity with Gemini
Added:
Modified:
clang/test/lit.cfg.py
Removed:
################################################################################
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:
More information about the cfe-commits
mailing list