1# UNSUPPORTED: system-windows 2 3# Check the behavior of --max-failures option. 4# 5# RUN: not %{lit} -j 1 %{inputs}/max-failures > %t.out 2>&1 6# RUN: not %{lit} --max-failures=1 -j 1 %{inputs}/max-failures >> %t.out 2>&1 7# RUN: not %{lit} --max-failures=2 -j 1 %{inputs}/max-failures >> %t.out 2>&1 8# RUN: not %{lit} --max-failures=0 -j 1 %{inputs}/max-failures 2>> %t.out 9# RUN: FileCheck < %t.out %s 10# 11 12# CHECK-NOT: reached maximum number of test failures 13# CHECK-NOT: Skipped 14# CHECK: Failed: 3 15 16# CHECK: reached maximum number of test failures, skipping remaining tests 17# CHECK: Skipped: 2 18# CHECK: Failed : 1 19 20# CHECK: reached maximum number of test failures, skipping remaining tests 21# CHECK: Skipped: 1 22# CHECK: Failed : 2 23 24# CHECK: error: argument --max-failures: requires positive integer, but found '0' 25