run the C test too

This commit is contained in:
Simon Hafner 2015-05-13 13:13:30 -05:00
commit 2bc1db7a30
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ proc longGCTests(r: var TResults, cat: Category, options: string) =
var c = initResults() var c = initResults()
# According to ioTests, this should compile the file # According to ioTests, this should compile the file
testNoSpec c, makeTest("tests/realtimeGC/shared", options, cat, actionCompile) testNoSpec c, makeTest("tests/realtimeGC/shared", options, cat, actionCompile)
# testC r, makeTest("tests/realtimeGC/cmain", cOptions, cat, actionRun) testC r, makeTest("tests/realtimeGC/cmain", cOptions, cat, actionRun)
testSpec r, makeTest("tests/realtimeGC/nmain", options & "--threads: on", cat, actionRun) testSpec r, makeTest("tests/realtimeGC/nmain", options & "--threads: on", cat, actionRun)
# ------------------------- threading tests ----------------------------------- # ------------------------- threading tests -----------------------------------

View file

@ -93,7 +93,7 @@ proc callCCompiler(cmdTemplate, filename, options: string,
target: TTarget): TSpec = target: TTarget): TSpec =
let c = parseCmdLine(cmdTemplate % ["target", targetToCmd[target], let c = parseCmdLine(cmdTemplate % ["target", targetToCmd[target],
"options", options, "file", filename.quoteShell]) "options", options, "file", filename.quoteShell])
var p = startProcess(command="gcc", args=c[4.. ^1], var p = startProcess(command="gcc", args=c[5.. ^1],
options={poStdErrToStdOut, poUsePath}) options={poStdErrToStdOut, poUsePath})
let outp = p.outputStream let outp = p.outputStream
var x = newStringOfCap(120) var x = newStringOfCap(120)