mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
adding some failing caas tests
This commit is contained in:
9
tests/caas/compile-then-def.txt
Normal file
9
tests/caas/compile-then-def.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
main.nim
|
||||
> c
|
||||
SuccessX
|
||||
> idetools --track:main.nim,5,18 --def main.nim
|
||||
strutils.toUpper
|
||||
SuccessX
|
||||
> idetools --track:main.nim,5,18 --def main.nim
|
||||
strutils.toUpper
|
||||
SuccessX
|
||||
7
tests/caas/def-then-compile.txt
Normal file
7
tests/caas/def-then-compile.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
main.nim
|
||||
> idetools --track:main.nim,5,18 --def main.nim
|
||||
strutils.toUpper
|
||||
SuccessX
|
||||
> c
|
||||
SuccessX
|
||||
|
||||
@@ -6,8 +6,8 @@ type
|
||||
|
||||
proc dirname(path: string): string = path.splitPath()[0]
|
||||
|
||||
const
|
||||
TesterDir = CurrentSourcePath.dirname
|
||||
var
|
||||
TesterDir = getAppDir()
|
||||
NimrodBin = TesterDir / "../bin/nimrod"
|
||||
|
||||
proc startNimrodSession*(project: string): TNimrodSession =
|
||||
@@ -26,6 +26,9 @@ proc doCommand*(session: var TNimrodSession, command: string): string =
|
||||
if session.nim.outputStream.readLine(line):
|
||||
if line.string == "": break
|
||||
result.add(line.string & "\n")
|
||||
else:
|
||||
result = "FAILED TO EXECUTE: " & command & "\n" & result
|
||||
break
|
||||
|
||||
proc close(session: var TNimrodSession) {.destructor.} =
|
||||
session.nim.close
|
||||
|
||||
Reference in New Issue
Block a user