summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2015-05-13 13:13:30 -0500
committerSimon Hafner <hafnersimon@gmail.com>2015-05-13 13:13:30 -0500
commit2bc1db7a30a52378c0fcf16611bc0faba6ddc390 (patch)
tree85bbecf4802b1c4d71c5bd80404db88c4678e277 /tests
parent9c4a74637db266c3cfcffcfb1e65bae982c6e4bf (diff)
downloadNim-2bc1db7a30a52378c0fcf16611bc0faba6ddc390.tar.gz
run the C test too
Diffstat (limited to 'tests')
-rw-r--r--tests/testament/categories.nim2
-rw-r--r--tests/testament/tester.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim
index 336cf211e..4de1edeee 100644
--- a/tests/testament/categories.nim
+++ b/tests/testament/categories.nim
@@ -147,7 +147,7 @@ proc longGCTests(r: var TResults, cat: Category, options: string) =
   var c = initResults()
   # According to ioTests, this should compile the file
   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)
 
 # ------------------------- threading tests -----------------------------------
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index 93cb3cc7a..0308ce940 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -93,7 +93,7 @@ proc callCCompiler(cmdTemplate, filename, options: string,
                   target: TTarget): TSpec =
   let c = parseCmdLine(cmdTemplate % ["target", targetToCmd[target],
                        "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})
   let outp = p.outputStream
   var x = newStringOfCap(120)