about summary refs log tree commit diff
path: root/Test/B01cd.ztst
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2019-12-31 01:52:03 +0000
committerDaniel Shahaf <danielsh@apache.org>2020-01-01 13:55:39 +0000
commit7e2c80fcd5a2aeae299f55e392e00275943f1562 (patch)
treefe0b5efa001da7bacc26b7cf1232a453c5547379 /Test/B01cd.ztst
parent6a67d38e969fe0acacf3191291e44a862376321f (diff)
downloadzsh-7e2c80fcd5a2aeae299f55e392e00275943f1562.tar.gz
zsh-7e2c80fcd5a2aeae299f55e392e00275943f1562.tar.xz
zsh-7e2c80fcd5a2aeae299f55e392e00275943f1562.zip
45169/0001: In the test suite, allow test cases to be marked as expected to fail.
See next commit for a use-case.
Diffstat (limited to 'Test/B01cd.ztst')
-rw-r--r--Test/B01cd.ztst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Test/B01cd.ztst b/Test/B01cd.ztst
index f79e18f4b..977cbdfe5 100644
--- a/Test/B01cd.ztst
+++ b/Test/B01cd.ztst
@@ -70,11 +70,13 @@
 # the expected status returned by the code when run, or - if it is
 # irrelevant.  An optional set of single-letter flags follows the status
 # or -.  The following are understood:
-#  . d   Don't diff stdout against the expected stdout.
+#  . d  Don't diff stdout against the expected stdout.
 #   D   Don't diff stderr against the expected stderr.
 #   q   All redirection lines given in the test script (not the lines
 #       actually produced by the test) are subject to ordinary quoted shell
 #       expansion (i.e. not globbing).
+#   f   Test is expected to fail. If the test's exit code, stdout, and stderr
+#       match, report a problem; otherwise, carry on to the next test case.
 # This can be followed by a `:' and a message describing the
 # test, which will be printed if the test fails, along with a
 # description of the failure that occurred.  The `:' and message are