summary refs log tree commit diff stats
path: root/tests/osproc/texitcode.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/osproc/texitcode.nim')
-rw-r--r--tests/osproc/texitcode.nim23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/osproc/texitcode.nim b/tests/osproc/texitcode.nim
deleted file mode 100644
index 558017716..000000000
--- a/tests/osproc/texitcode.nim
+++ /dev/null
@@ -1,23 +0,0 @@
-discard """
-  output: ""
-"""
-
-import osproc, os
-
-const filename = when defined(Windows): "tafalse.exe" else: "tafalse"
-let dir = getCurrentDir() / "tests" / "osproc"
-doAssert fileExists(dir / filename)
-
-var p = startProcess(filename, dir)
-doAssert(waitForExit(p) == QuitFailure)
-
-p = startProcess(filename, dir)
-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))