summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
='n49' href='#n49'>49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93