Debian Codegraph @

llvm/utils/lit/tests/max-failures.py

raw
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
4 # details.
5 # REQUIRES: less-than-4-cpu-cores-in-parallel
6
7 # Check the behavior of --max-failures option.
8 #
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
14 #
15
16 # CHECK-NOT: reached maximum number of test failures
17 # CHECK-NOT: Skipped
18 # CHECK: Failed: 3
19
20 # CHECK: reached maximum number of test failures, skipping remaining tests
21 # CHECK: Skipped: 2
22 # CHECK: Failed : 1
23
24 # CHECK: reached maximum number of test failures, skipping remaining tests
25 # CHECK: Skipped: 1
26 # CHECK: Failed : 2
27
28 # CHECK: error: argument --max-failures: requires positive integer, but found '0'