weaken tosproc test for my Windows machine which doesn't have 'ls'

This commit is contained in:
Araq 2020-07-07 12:14:43 +02:00 • committed by Andreas Rumpf
commit 49cea86d8b

View file

@ -219,6 +219,7 @@ else: # main driver
var result = execCmdEx("nim r --hints:off -", options = {}, input = "echo 3*4") var result = execCmdEx("nim r --hints:off -", options = {}, input = "echo 3*4")
stripLineEnd(result[0]) stripLineEnd(result[0])
doAssert result == ("12", 0) doAssert result == ("12", 0)
when not defined(windows):
doAssert execCmdEx("ls --nonexistant").exitCode != 0 doAssert execCmdEx("ls --nonexistant").exitCode != 0
when false: when false:
# bug: on windows, this raises; on posix, passes # bug: on windows, this raises; on posix, passes