blob: 5cc258dd08aa88f89bc2be7f52e6f74e29ba69dd [file] [log] [blame]
Daniel Dunbar40b65002016-09-26 23:38:23 +00001# Check the behavior of --max-failures option.
2#
3# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
4# RUN: not %{lit} --max-failures=1 -j 1 -v %{inputs}/shtest-shell >> %t.out
5# RUN: not %{lit} --max-failures=2 -j 1 -v %{inputs}/shtest-shell >> %t.out
6# RUN: not %{lit} --max-failures=0 -j 1 -v %{inputs}/shtest-shell 2>> %t.out
7# RUN: FileCheck < %t.out %s
8#
9# END.
10
11# CHECK: Failing Tests (3)
12# CHECK: Failing Tests (1)
13# CHECK: Failing Tests (2)
14# CHECK: error: Setting --max-failures to 0 does not have any effect.