[all-commits] [llvm/llvm-project] 150006: [lit] Fix tests on Windows

Julian Lettner via All-commits all-commits at lists.llvm.org
Fri Apr 10 17:34:23 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 15000650a6d2e501eb521e0d94e6ea6fa6b16609
      https://github.com/llvm/llvm-project/commit/15000650a6d2e501eb521e0d94e6ea6fa6b16609
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2020-04-10 (Fri, 10 Apr 2020)

  Changed paths:
    A llvm/utils/lit/tests/Inputs/max-failures/fail1.txt
    A llvm/utils/lit/tests/Inputs/max-failures/fail2.txt
    A llvm/utils/lit/tests/Inputs/max-failures/fail3.txt
    M llvm/utils/lit/tests/Inputs/max-failures/lit.cfg
    M llvm/utils/lit/tests/Inputs/max-time/lit.cfg
    A llvm/utils/lit/tests/Inputs/max-time/slow.py
    R llvm/utils/lit/tests/Inputs/max-time/slow.txt
    M llvm/utils/lit/tests/max-failures.py

  Log Message:
  -----------
  [lit] Fix tests on Windows

max-time.py:
  Windows does not have a native `sleep` command, use `time.sleep()` in
  Python instead.

max-failures.py:
  The max-failure test reused the shtest-shell test inputs instead of
  defining its own "test domain".  However, the output of this
  shtest-shell "test domain" is slightly different on Windows, which now
  bites us since we made the max-failures test stricter.  Let's define
  our own "max failures" test domain.




More information about the All-commits mailing list