[all-commits] [llvm/llvm-project] b95f54: [lit] [Windows] Print exit codes > 255 as hex too

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Nov 15 02:11:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b95f54350c85f535282cf2d8cd5c5925febb27f8
      https://github.com/llvm/llvm-project/commit/b95f54350c85f535282cf2d8cd5c5925febb27f8
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

  Changed paths:
    M llvm/utils/lit/lit/TestRunner.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list