diff --git a/tests/osproc/texitcode.nim b/tests/osproc/texitcode.nim index 558017716875f..0b05ca3cbbf0e 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