1 # UNSUPPORTED: system-windows
2 # FIXME: This test is flaky and hangs randomly on multi-core systems.
3 # See https://github.com/llvm/llvm-project/issues/56336 for more
5 # REQUIRES: less-than-4-cpu-cores-in-parallel
7 # Check the behavior of --max-failures option.
9 # RUN: not %{lit} %{inputs}/max-failures > %t.out 2>&1
10 # RUN: not %{lit} --max-failures=1 %{inputs}/max-failures >> %t.out 2>&1
11 # RUN: not %{lit} --max-failures=2 %{inputs}/max-failures >> %t.out 2>&1
12 # RUN: not %{lit} --max-failures=0 %{inputs}/max-failures 2>> %t.out
13 # RUN: FileCheck < %t.out %s
16 # CHECK-NOT: reached maximum number of test failures
20 # CHECK: reached maximum number of test failures, skipping remaining tests
24 # CHECK: reached maximum number of test failures, skipping remaining tests
28 # CHECK: error: argument --max-failures: requires positive integer, but found '0'