aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/builtin/rm.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/builtin/rm.test')
-rw-r--r--tests/test/script/builtin/rm.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test/script/builtin/rm.test b/tests/test/script/builtin/rm.test
index cf5d2fa..20b2b24 100644
--- a/tests/test/script/builtin/rm.test
+++ b/tests/test/script/builtin/rm.test
@@ -33,7 +33,13 @@ rm a
:
: Removing non-existing file fails.
:
-rm a 2>- == 1 # @@ REGEX
+: Note that there is an optional trailing blank line in the regex that matches
+: the newline added by msvcrt as a part of the error description.
+:
+rm a 2>>~%EOE% == 1
+%rm: unable to remove '.+[/\\]test[/\\]rm[/\\]file-not-exists[/\\]a': .+%
+%%?
+EOE
: file-not-exists-force
: