[PATCH] D137771: [lit] [Windows] Print exit codes > 255 as hex too
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 15 02:11:08 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb95f54350c85: [lit] [Windows] Print exit codes > 255 as hex too (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137771/new/
https://reviews.llvm.org/D137771
Files:
llvm/utils/lit/lit/TestRunner.py
Index: llvm/utils/lit/lit/TestRunner.py
===================================================================
--- llvm/utils/lit/lit/TestRunner.py
+++ llvm/utils/lit/lit/TestRunner.py
@@ -988,7 +988,7 @@
if result.exitCode != 0:
# On Windows, a negative exit code indicates a signal, and those are
# easier to recognize or look up if we print them in hex.
- if litConfig.isWindows and result.exitCode < 0:
+ if litConfig.isWindows and (result.exitCode < 0 or result.exitCode > 255):
codeStr = hex(int(result.exitCode & 0xFFFFFFFF)).rstrip("L")
else:
codeStr = str(result.exitCode)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137771.475391.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221115/10ee0fb8/attachment.bin>
More information about the llvm-commits
mailing list