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:
parent
d0b60f1fe3
commit
c115090f6e
5 changed files with 27 additions and 21 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
discard """
|
||||
output: "Hello, world"
|
||||
"""
|
||||
|
||||
# bug #3584
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue