aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/builtin/touch.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/builtin/touch.testscript')
-rw-r--r--tests/test/script/builtin/touch.testscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test/script/builtin/touch.testscript b/tests/test/script/builtin/touch.testscript
index a43386b..731f023 100644
--- a/tests/test/script/builtin/touch.testscript
+++ b/tests/test/script/builtin/touch.testscript
@@ -41,6 +41,12 @@ $c <<EOI && $b
}
EOI
+: unknown-option
+:
+$c <<EOI && $b
+touch -u 2>"touch: unknown option '-u'" == 1
+EOI
+
: no-args
:
: Test passing no arguments.
@@ -77,7 +83,7 @@ EOI
: no-value
:
$c <<EOI && $b
- touch --after 2>'touch: missing --after option value' != 0
+ touch --after 2>"touch: missing value for option '--after'" != 0
EOI
: not-exists