adding some failing caas tests

This commit is contained in:
Zahary Karadjov
2013-05-04 02:17:52 +03:00
parent a8e12afc76
commit 4864447ba4
3 changed files with 21 additions and 2 deletions

View 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

View File

@@ -0,0 +1,7 @@
main.nim
> idetools --track:main.nim,5,18 --def main.nim
strutils.toUpper
SuccessX
> c
SuccessX

View File

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