do not test metrics collector under ARC

This commit is contained in:
gmega 2024-03-01 12:43:02 -03:00
parent 10c7d6bc5b
commit 0f14358149
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
3 changed files with 7 additions and 3 deletions

View File

@ -12,4 +12,6 @@ requires "nim >= 1.6.16",
"metrics >= 0.1.0"
task test, "Run tests":
exec "nim c --out:./build/testall -r tests/testall.nim"
exec "nim c --out:./build/testall -r tests/testall.nim"
# nim-metrics doesn't play well with ARC
exec "nim c --out:./build/testall --mm:refc -d:metrics -r tests/testall.nim"

View File

@ -1,3 +1,2 @@
switch("threads", "on")
switch("define", "chronosProfiling")
switch("define", "metrics")

View File

@ -1,3 +1,6 @@
import ./[testevents, testmetricscollector, testprofiler]
import ./[testevents, testprofiler]
when defined(metrics):
import ./testmetricscollector
{.warning[UnusedImport]: off.}