Fix unit test for Windows and quit with failure code
This commit is contained in:
parent
2c3cc71540
commit
87e08bfb66
2 changed files with 4 additions and 2 deletions
|
|
@ -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'")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue