rename tfalse.nim to tafalse.nim

This commit is contained in:
Johannes Hofmann
2016-09-30 10:39:57 +02:00
parent 8d85809d62
commit 7f25db2dd1
3 changed files with 8 additions and 7 deletions

3
tests/osproc/tafalse.nim Normal file
View File

@@ -0,0 +1,3 @@
# 'tafalse.nim' to ensure it is compiled before texitcode.nim
import system
quit(QuitFailure)

View File

@@ -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)

View File

@@ -1,2 +0,0 @@
import system
quit(QuitFailure)