[llvm-branch-commits] [llvm] [lit] Make not still fail if the called process returns a signal (PR #174298)
Aiden Grossman via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jan 3 22:01:33 PST 2026
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/174298
>From 50721b3a424fef103374c6ded9d1bbd0e0805903 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sun, 4 Jan 2026 06:01:23 +0000
Subject: [PATCH] feedback
Created using spr 1.3.7
---
llvm/utils/lit/lit/TestRunner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index b880bab5d4019..68f92f47e6fb0 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -1071,7 +1071,7 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper):
raise KeyboardInterrupt
if proc_not_counts[i] % 2:
if proc_not_fail_if_crash[i]:
- res = 1 if res <= 0 else 0
+ res = int(res <= 0)
else:
res = 1 if res == 0 else 0
elif proc_not_counts[i] > 1:
More information about the llvm-branch-commits
mailing list