rename tfalse.nim to tafalse.nim
This commit is contained in:
parent
8d85809d62
commit
7f25db2dd1
3 changed files with 8 additions and 7 deletions
3
tests/osproc/tafalse.nim
Normal file
3
tests/osproc/tafalse.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# 'tafalse.nim' to ensure it is compiled before texitcode.nim
|
||||||
|
import system
|
||||||
|
quit(QuitFailure)
|
||||||
|
|
@ -4,14 +4,14 @@ discard """
|
||||||
"""
|
"""
|
||||||
import osproc, os
|
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, dir)
|
||||||
|
|
||||||
var p = startProcess(filename, getCurrentDir() / "tests" / "osproc")
|
|
||||||
doAssert(waitForExit(p) == QuitFailure)
|
doAssert(waitForExit(p) == QuitFailure)
|
||||||
|
|
||||||
p = startProcess(filename, getCurrentDir() / "tests" / "osproc")
|
p = startProcess(filename, dir)
|
||||||
var running = true
|
var running = true
|
||||||
while running:
|
while running:
|
||||||
running = running(p)
|
running = running(p)
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
import system
|
|
||||||
quit(QuitFailure)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue