[all-commits] [llvm/llvm-project] d0b03e: [lit] Fix the return code for "not not" after eval...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Sun Apr 18 14:41:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0b03ec401e8465b88893a4c56aeb0c787a54ad9
      https://github.com/llvm/llvm-project/commit/d0b03ec401e8465b88893a4c56aeb0c787a54ad9
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-04-19 (Mon, 19 Apr 2021)

  Changed paths:
    M llvm/utils/lit/lit/TestRunner.py
    A llvm/utils/lit/tests/Inputs/shtest-not/fail2.py
    A llvm/utils/lit/tests/Inputs/shtest-not/not-calls-fail2.txt
    M llvm/utils/lit/tests/shtest-not.py

  Log Message:
  -----------
  [lit] Fix the return code for "not not" after evaluating "not" internally

This fixes cases where "not not <command>" is supposed to return
only the error codes 0 or 1, but after efee57925c3f46c74c6697,
it passed the original error code through.

This was visible on AIX in the shtest-output-printing.py testcase,
where 'wc' returns 2, while it returns 1 on other platforms, and the
test required "not not" to normalize it to 1.




More information about the All-commits mailing list