From 49cea86d8bb836188bf1e3b173715d406af48153 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 7 Jul 2020 12:14:43 +0200 Subject: [PATCH] weaken tosproc test for my Windows machine which doesn't have 'ls' --- tests/stdlib/tosproc.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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