diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2016-12-03 14:07:08 +0100 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2016-12-03 14:07:08 +0100 |
commit | 95188edf6fe63ee3fe8341b1b5c2e7b92beb3415 (patch) | |
tree | b3e09fe1cadd846881f1616c0bc7010cc95dc2be /tests | |
parent | b453a8e616f489e077f8edcd95623b07484e7b8b (diff) | |
download | Nim-95188edf6fe63ee3fe8341b1b5c2e7b92beb3415.tar.gz |
make sure first call to running() after process exit returns false
Diffstat (limited to 'tests')
-rw-r--r-- | tests/osproc/texitcode.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/osproc/texitcode.nim b/tests/osproc/texitcode.nim index 1e83658c2..4eaab6da2 100644 --- a/tests/osproc/texitcode.nim +++ b/tests/osproc/texitcode.nim @@ -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)) |