2020-04-11 11:03:44 +08:00
|
|
|
# UNSUPPORTED: system-windows
|
|
|
|
|
2016-09-27 07:38:23 +08:00
|
|
|
# Check the behavior of --max-failures option.
|
|
|
|
#
|
2021-08-07 22:40:09 +08:00
|
|
|
# RUN: not %{lit} %{inputs}/max-failures > %t.out 2>&1
|
|
|
|
# RUN: not %{lit} --max-failures=1 %{inputs}/max-failures >> %t.out 2>&1
|
|
|
|
# RUN: not %{lit} --max-failures=2 %{inputs}/max-failures >> %t.out 2>&1
|
|
|
|
# RUN: not %{lit} --max-failures=0 %{inputs}/max-failures 2>> %t.out
|
2016-09-27 07:38:23 +08:00
|
|
|
# RUN: FileCheck < %t.out %s
|
|
|
|
#
|
|
|
|
|
2019-03-08 12:48:24 +08:00
|
|
|
# CHECK-NOT: reached maximum number of test failures
|
2020-04-08 13:48:39 +08:00
|
|
|
# CHECK-NOT: Skipped
|
|
|
|
# CHECK: Failed: 3
|
2019-03-08 12:48:24 +08:00
|
|
|
|
|
|
|
# CHECK: reached maximum number of test failures, skipping remaining tests
|
2020-04-08 13:48:39 +08:00
|
|
|
# CHECK: Skipped: 2
|
|
|
|
# CHECK: Failed : 1
|
2019-03-08 12:48:24 +08:00
|
|
|
|
|
|
|
# CHECK: reached maximum number of test failures, skipping remaining tests
|
2020-04-08 13:48:39 +08:00
|
|
|
# CHECK: Skipped: 1
|
|
|
|
# CHECK: Failed : 2
|
2019-03-08 12:48:24 +08:00
|
|
|
|
2019-10-11 02:03:37 +08:00
|
|
|
# CHECK: error: argument --max-failures: requires positive integer, but found '0'
|