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.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/osproc/texitcode.nim b/tests/osproc/texitcode.nim
index df1db8aa3..1e83658c2 100644
--- a/tests/osproc/texitcode.nim
+++ b/tests/osproc/texitcode.nim
@@ -4,14 +4,14 @@ discard """
 """
 import osproc, os
 
-const filename = when defined(Windows): "tfalse.exe" else: "tfalse"
+const filename = when defined(Windows): "tafalse.exe" else: "tafalse"
+let dir = getCurrentDir() / "tests" / "osproc"
+doAssert fileExists(dir / filename)
 
-doAssert fileExists(getCurrentDir() / "tests" / "osproc" / filename)
-
-var p = startProcess(filename, getCurrentDir() / "tests" / "osproc")
+var p = startProcess(filename, dir)
 doAssert(waitForExit(p) == QuitFailure)
 
-p = startProcess(filename, getCurrentDir() / "tests" / "osproc")
+p = startProcess(filename, dir)
 var running = true
 while running:
   running = running(p)