Skip to content

Commit db540a0

Browse files
authored
fix #13449 texitcode flaky on windows (#13487)
1 parent c444ab9 commit db540a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/osproc/texitcode.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ doAssert(waitForExit(p) == QuitFailure)
1919

2020
# make sure that first call to running() after process exit returns false
2121
p = startProcess(filename, dir)
22-
os.sleep(500)
22+
for j in 0..<30: # refs #13449
23+
os.sleep(50)
24+
if not running(p): break
2325
doAssert(not running(p))
26+
doAssert(waitForExit(p) == QuitFailure) # avoid zombies

0 commit comments

Comments
 (0)