summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/max-failures.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/lit/tests/max-failures.py')
-rw-r--r--llvm/utils/lit/tests/max-failures.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/max-failures.py b/llvm/utils/lit/tests/max-failures.py
new file mode 100644
index 00000000000..5cc258dd08a
--- /dev/null
+++ b/llvm/utils/lit/tests/max-failures.py
@@ -0,0 +1,14 @@
+# Check the behavior of --max-failures option.
+#
+# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out
+# RUN: not %{lit} --max-failures=1 -j 1 -v %{inputs}/shtest-shell >> %t.out
+# RUN: not %{lit} --max-failures=2 -j 1 -v %{inputs}/shtest-shell >> %t.out
+# RUN: not %{lit} --max-failures=0 -j 1 -v %{inputs}/shtest-shell 2>> %t.out
+# RUN: FileCheck < %t.out %s
+#
+# END.
+
+# CHECK: Failing Tests (3)
+# CHECK: Failing Tests (1)
+# CHECK: Failing Tests (2)
+# CHECK: error: Setting --max-failures to 0 does not have any effect.
OpenPOWER on IntegriCloud