cmd/tests: Add ^ escape character tests

Frédéric Delanoy frederic.delanoy at gmail.com
Sat Jul 23 05:13:28 CDT 2011


---
 programs/cmd/tests/test_builtins.cmd     |   19 +++++++++++++++++++
 programs/cmd/tests/test_builtins.cmd.exp |   13 +++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 81a326a..851598b 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -28,6 +28,25 @@ echo .word
 echo word at space@
 echo word at space@@space@
 
+echo ------------ Testing ^^ escape character --------------
+echo hell^o, world
+echo hell^^o, world
+echo hell^^^o, world
+mkdir foobar
+echo baz> foobar\baz
+type foobar\baz
+type foobar^\baz
+rd /s/q foobar
+echo foo ^| echo bar
+echo foo ^& echo bar
+call :setError 0
+echo bak ^&& echo baz 2> nul
+echo %ErrorLevel%
+echo foo ^> foo
+echo ^<> foo
+type foo
+del foo
+
 echo ------------ Testing 'set' --------------
 echo %ErrorLevel%
 set FOOBAR 2> nul > nul
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index c3fee1a..93c1534 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -47,6 +47,19 @@ word
 .word
 word at space@
 word at space@@space@
+ at todo_wine@------------ Testing ^ escape character --------------
+ at todo_wine@hello, world
+ at todo_wine@hell^o, world
+ at todo_wine@hell^o, world
+baz
+ at todo_wine@baz
+ at todo_wine@foo | echo bar
+ at todo_wine@foo & echo bar
+ at todo_wine@bak &
+ at todo_wine@baz at space@
+ at todo_wine@0 at or_broken@1
+ at todo_wine@foo > foo
+ at todo_wine@<
 ------------ Testing 'set' --------------
 0
 1
-- 
1.7.6




More information about the wine-patches mailing list