[lit] [Windows] Print exit codes > 255 as hex too
authorMartin Storsjö <martin@martin.st>
Wed, 2 Nov 2022 13:41:06 +0000 (13:41 +0000)
committerMartin Storsjö <martin@martin.st>
Tue, 15 Nov 2022 10:09:32 +0000 (12:09 +0200)
commitb95f54350c85f535282cf2d8cd5c5925febb27f8
tree71d45c97c3390e1b16f78f74414c9313dd1ecb35
parentae59131d3ef311fb4b1e50627c6457be00e60dc9
[lit] [Windows] Print exit codes > 255 as hex too

891bb4872c8098f8a851a92e989af3252b46f5ad made negative exit codes
be printed as hex, which makes it easier to recognize e.g.
0xC0000005 instead of -1073741819. However, current Python versions
(at least the ones I'm using) seem to end up with positive unsigned
return codes, so that again ends up printed as 3221225477.

Print any return code over 255 as a hexadecimal number instead.

Differential Revision: https://reviews.llvm.org/D137771
llvm/utils/lit/lit/TestRunner.py