max-failures.py 527 B

1234567891011121314
  1. # Check the behavior of --max-failures option.
  2. #
  3. # RUN: not %{lit} -j 1 -v %{inputs}/max-failures > %t.out
  4. # RUN: not %{lit} --max-failures=1 -j 1 -v %{inputs}/max-failures >> %t.out
  5. # RUN: not %{lit} --max-failures=2 -j 1 -v %{inputs}/max-failures >> %t.out
  6. # RUN: not %{lit} --max-failures=0 -j 1 -v %{inputs}/max-failures 2>> %t.out
  7. # RUN: FileCheck < %t.out %s
  8. #
  9. # END.
  10. # CHECK: Failing Tests (17)
  11. # CHECK: Failing Tests (1)
  12. # CHECK: Failing Tests (2)
  13. # CHECK: error: Setting --max-failures to 0 does not have any effect.