fix #13449 texitcode flaky on windows (#13487)

This commit is contained in:
Timothee Cour 2020-02-25 08:49:16 -08:00 • committed by GitHub
commit db540a0223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,5 +19,8 @@ doAssert(waitForExit(p) == QuitFailure)
# make sure that first call to running() after process exit returns false # make sure that first call to running() after process exit returns false
p = startProcess(filename, dir) 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(not running(p))
doAssert(waitForExit(p) == QuitFailure) # avoid zombies