[llvm-branch-commits] [lit] Make not still fail if the called process returns a signal (PR #174298)
Alexander Richardson via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jan 3 19:49:10 PST 2026
================
@@ -1063,7 +1070,10 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper):
if res == -signal.SIGINT:
raise KeyboardInterrupt
if proc_not_counts[i] % 2:
- res = 1 if res == 0 else 0
+ if proc_not_fail_if_crash[i]:
+ res = 1 if res <= 0 else 0
----------------
arichardson wrote:
```suggestion
res = int(res <= 0)
```
Maybe this is simpler?
https://github.com/llvm/llvm-project/pull/174298
More information about the llvm-branch-commits
mailing list