diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/gc/gcbench.nim | 3 | ||||
-rwxr-xr-x | tests/gc/gcleak.nim | 3 | ||||
-rwxr-xr-x | tests/gc/gcleak2.nim | 3 | ||||
-rwxr-xr-x | tests/gc/gcleak3.nim | 3 | ||||
-rw-r--r-- | tests/specials.nim | 2 |
5 files changed, 14 insertions, 0 deletions
diff --git a/tests/gc/gcbench.nim b/tests/gc/gcbench.nim index 253b74805..44d952baa 100755 --- a/tests/gc/gcbench.nim +++ b/tests/gc/gcbench.nim @@ -161,5 +161,8 @@ proc main() = var elapsed = epochTime() - t PrintDiagnostics() echo("Completed in " & $elapsed & "ms. Success!") + +when defined(GC_setMaxPause): + GC_setMaxPause 2_000 main() diff --git a/tests/gc/gcleak.nim b/tests/gc/gcleak.nim index ab85409ee..c40c6b3b5 100755 --- a/tests/gc/gcleak.nim +++ b/tests/gc/gcleak.nim @@ -2,6 +2,9 @@ discard """ outputsub: "no leak: " """ +when defined(GC_setMaxPause): + GC_setMaxPause 2_000 + type TTestObj = object of TObject x: string diff --git a/tests/gc/gcleak2.nim b/tests/gc/gcleak2.nim index bd7962a7e..a50541fbc 100755 --- a/tests/gc/gcleak2.nim +++ b/tests/gc/gcleak2.nim @@ -2,6 +2,9 @@ discard """ outputsub: "no leak: " """ +when defined(GC_setMaxPause): + GC_setMaxPause 2_000 + type TTestObj = object of TObject x: string diff --git a/tests/gc/gcleak3.nim b/tests/gc/gcleak3.nim index 70aeda3bb..588e238e9 100755 --- a/tests/gc/gcleak3.nim +++ b/tests/gc/gcleak3.nim @@ -2,6 +2,9 @@ discard """ outputsub: "no leak: " """ +when defined(GC_setMaxPause): + GC_setMaxPause 2_000 + type TSomething = object s: string diff --git a/tests/specials.nim b/tests/specials.nim index 99e5c4c10..da2013e02 100644 --- a/tests/specials.nim +++ b/tests/specials.nim @@ -122,6 +122,8 @@ proc runGcTests(r: var TResults, options: string) = template test(filename: expr): stmt = runSingleTest(r, "tests/gc" / filename, options) runSingleTest(r, "tests/gc" / filename, options & " -d:release") + runSingleTest(r, "tests/gc" / filename, options & + " -d:release -d:useRealtimeGC") test "gcbench" test "gcleak" |