From 9deab06c1ba4e7badec41031ac1af585c353c6f2 Mon Sep 17 00:00:00 2001 From: Reimer Behrends Date: Tue, 8 Sep 2015 19:29:29 +0200 Subject: [PATCH] Include Boehm GC in garbage collection tests. --- tests/testament/categories.nim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index 4de1edeee..10e39b20a 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -114,12 +114,18 @@ proc gcTests(r: var TResults, cat: Category, options: string) = testSpec r, makeTest("tests/gc" / filename, options & " -d:release -d:useRealtimeGC", cat, actionRun) - template test(filename: expr): stmt = + template testWithoutBoehm(filename: expr): stmt = testWithoutMs filename testSpec r, makeTest("tests/gc" / filename, options & " --gc:markAndSweep", cat, actionRun) testSpec r, makeTest("tests/gc" / filename, options & " -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 "gcbench" @@ -130,9 +136,9 @@ proc gcTests(r: var TResults, cat: Category, options: string) = test "gcleak4" # Disabled because it works and takes too long to run: #test "gcleak5" - test "weakrefs" + testWithoutBoehm "weakrefs" test "cycleleak" - test "closureleak" + testWithoutBoehm "closureleak" testWithoutMs "refarrayleak" test "stackrefleak"