Include Boehm GC in garbage collection tests.
This commit is contained in:
parent
639b5e0069
commit
9deab06c1b
1 changed files with 9 additions and 3 deletions
|
|
@ -114,12 +114,18 @@ proc gcTests(r: var TResults, cat: Category, options: string) =
|
||||||
testSpec r, makeTest("tests/gc" / filename, options &
|
testSpec r, makeTest("tests/gc" / filename, options &
|
||||||
" -d:release -d:useRealtimeGC", cat, actionRun)
|
" -d:release -d:useRealtimeGC", cat, actionRun)
|
||||||
|
|
||||||
template test(filename: expr): stmt =
|
template testWithoutBoehm(filename: expr): stmt =
|
||||||
testWithoutMs filename
|
testWithoutMs filename
|
||||||
testSpec r, makeTest("tests/gc" / filename, options &
|
testSpec r, makeTest("tests/gc" / filename, options &
|
||||||
" --gc:markAndSweep", cat, actionRun)
|
" --gc:markAndSweep", cat, actionRun)
|
||||||
testSpec r, makeTest("tests/gc" / filename, options &
|
testSpec r, makeTest("tests/gc" / filename, options &
|
||||||
" -d:release --gc:markAndSweep", cat, actionRun)
|
" -d:release --gc:markAndSweep", cat, actionRun)
|
||||||
|
template test(filename: expr): stmt =
|
||||||
|
testWithoutBoehm filename
|
||||||
|
testSpec r, makeTest("tests/gc" / filename, options &
|
||||||
|
" --gc:boehm", cat, actionRun)
|
||||||
|
testSpec r, makeTest("tests/gc" / filename, options &
|
||||||
|
" -d:release --gc:boehm", cat, actionRun)
|
||||||
|
|
||||||
test "growobjcrash"
|
test "growobjcrash"
|
||||||
test "gcbench"
|
test "gcbench"
|
||||||
|
|
@ -130,9 +136,9 @@ proc gcTests(r: var TResults, cat: Category, options: string) =
|
||||||
test "gcleak4"
|
test "gcleak4"
|
||||||
# Disabled because it works and takes too long to run:
|
# Disabled because it works and takes too long to run:
|
||||||
#test "gcleak5"
|
#test "gcleak5"
|
||||||
test "weakrefs"
|
testWithoutBoehm "weakrefs"
|
||||||
test "cycleleak"
|
test "cycleleak"
|
||||||
test "closureleak"
|
testWithoutBoehm "closureleak"
|
||||||
testWithoutMs "refarrayleak"
|
testWithoutMs "refarrayleak"
|
||||||
|
|
||||||
test "stackrefleak"
|
test "stackrefleak"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue