Testament should run tests with no action (#8232)

* Testament should run tests with no action

* Fix strutils tests for JS
This commit is contained in:
genotrance 2018-07-08 19:38:46 -05:00 • committed by Varriount
commit c115090f6e
5 changed files with 27 additions and 21 deletions

View file

@ -16,6 +16,5 @@ proc main =
var leaf = "this is the leaf. it allocates"
let x = createCycle(leaf)
let y = createCycle(leaf)
echo "done ", getOccupiedMem()
main()

View file

@ -1,3 +1,6 @@
discard """
output: "Hello, world"
"""
# bug #3584

View file

@ -297,6 +297,8 @@ proc testSpec(r: var TResults, test: TTest, target = targetC) =
var expected: TSpec
if test.action != actionRunNoSpec:
expected = parseSpec(tname)
if test.action == actionRun and expected.action == actionCompile:
expected.action = actionRun
else:
specDefaults expected
expected.action = actionRunNoSpec