mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
rename tfalse.nim to tafalse.nim
This commit is contained in:
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
|
||||
|
||||
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)
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
import system
|
||||
quit(QuitFailure)
|
||||
Reference in New Issue
Block a user