Include Boehm GC in garbage collection tests.

This commit is contained in:
Reimer Behrends 2015-09-08 19:29:29 +02:00
commit 9deab06c1b

View file

@ -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"