Fix unit test for Windows and quit with failure code

This commit is contained in:
Joey Yakimowich-Payne 2018-08-03 13:02:56 +09:00
commit 87e08bfb66
2 changed files with 4 additions and 2 deletions

View file

@ -120,7 +120,7 @@ suite "test file ops":
test "pipe command into file":
when defined(windows):
pipe(testfilename, "(ECHO foo)>>$file")
pipe(testfilename, "ECHO foo > $file")
testfilename.checkFile("foo")
else:
pipe(testfilename, "cat $file | grep 'this is text'")