diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index a4b4594bffa..d94c3e7e76c 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -113,6 +113,13 @@ if exist foo3 ( del foo3 ) else echo foo3 not created echo bar4 && echo foo4 +echo ...on failure conditional ^|^| +call :setError 789 || echo foo5 +echo foo6 || echo bar6 > bar6 +if exist bar6 ( + echo bar6 created + del bar6 +) echo ------------ Testing type ------------ echo bar> foobaz diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index de983642554..6e842b8b0e4 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -100,6 +100,9 @@ foo2 @todo_wine@foo3 not created bar4@space@ foo4 +@todo_wine@...on failure conditional || +@todo_wine@foo5 +@todo_wine@foo6@space@ ------------ Testing type ------------ @pwd@>type foobaz@space@