summary refs log tree commit diff stats
path: root/tests/osproc
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-25 08:49:16 -0800
committerGitHub <noreply@github.com>2020-02-25 17:49:16 +0100
commitdb540a0223480134598fb4806c55510cdef36bf1 (patch)
tree063000da55e8c779a33c1a03f08053c82f3b588b /tests/osproc
parentc444ab9a54e3f1320b69bdb6e34d79ee403cd325 (diff)
downloadNim-db540a0223480134598fb4806c55510cdef36bf1.tar.gz
fix #13449 texitcode flaky on windows (#13487)
Diffstat (limited to 'tests/osproc')
-rw-r--r--tests/osproc/texitcode.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/osproc/texitcode.nim b/tests/osproc/texitcode.nim
index 558017716..0b05ca3cb 100644
--- a/tests/osproc/texitcode.nim
+++ b/tests/osproc/texitcode.nim
@@ -19,5 +19,8 @@ doAssert(waitForExit(p) == QuitFailure)
 
 # make sure that first call to running() after process exit returns false
 p = startProcess(filename, dir)
-os.sleep(500)
+for j in 0..<30: # refs #13449
+  os.sleep(50)
+  if not running(p): break
 doAssert(not running(p))
+doAssert(waitForExit(p) == QuitFailure) # avoid zombies