[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:57 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
----------------
boomanaiden154 wrote:

Yeah, reasoning about a bool->int conversion is easier to me than trying to figure out the if statement. Updated.

https://github.com/llvm/llvm-project/pull/174298


More information about the llvm-branch-commits mailing list