From db540a0223480134598fb4806c55510cdef36bf1 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 25 Feb 2020 08:49:16 -0800 Subject: fix #13449 texitcode flaky on windows (#13487) --- tests/osproc/texitcode.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0