make sure first call to running() after process exit returns false

This commit is contained in:
Johannes Hofmann 2016-12-03 14:07:08 +01:00
commit 95188edf6f
2 changed files with 15 additions and 4 deletions

View file

@ -16,3 +16,8 @@ var running = true
while running:
running = running(p)
doAssert(waitForExit(p) == QuitFailure)
# make sure that first call to running() after process exit returns false
p = startProcess(filename, dir)
os.sleep(500)
doAssert(not running(p))