summary refs log tree commit diff stats
path: root/tests/stdlib/tosproc.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-07-07 12:14:43 +0200
committerAndreas Rumpf <rumpf_a@web.de>2020-07-07 15:17:58 +0200
commit49cea86d8bb836188bf1e3b173715d406af48153 (patch)
treeae99954b63ac5279857710d5b08d2db831680d7b /tests/stdlib/tosproc.nim
parent37253d660f93ac86942579defbde790ec557dcf1 (diff)
downloadNim-49cea86d8bb836188bf1e3b173715d406af48153.tar.gz
weaken tosproc test for my Windows machine which doesn't have 'ls'
Diffstat (limited to 'tests/stdlib/tosproc.nim')
-rw-r--r--tests/stdlib/tosproc.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/stdlib/tosproc.nim b/tests/stdlib/tosproc.nim
index 363bd5d74..78b3ea807 100644
--- a/tests/stdlib/tosproc.nim
+++ b/tests/stdlib/tosproc.nim
@@ -219,7 +219,8 @@ else: # main driver
     var result = execCmdEx("nim r --hints:off -", options = {}, input = "echo 3*4")
     stripLineEnd(result[0])
     doAssert result == ("12", 0)
-    doAssert execCmdEx("ls --nonexistant").exitCode != 0
+    when not defined(windows):
+      doAssert execCmdEx("ls --nonexistant").exitCode != 0
     when false:
       # bug: on windows, this raises; on posix, passes
       doAssert execCmdEx("nonexistant").exitCode != 0