diff --git a/chronos.nimble b/chronos.nimble index e063ac3..48c7781 100644 --- a/chronos.nimble +++ b/chronos.nimble @@ -54,17 +54,20 @@ task examples, "Build examples": task test, "Run all tests": for args in testArguments: - run args, "tests/testall" if (NimMajor, NimMinor) > (1, 6): + # First run tests with `refc` memory manager. run args & " --mm:refc", "tests/testall" - + run args, "tests/testall" task test_libbacktrace, "test with libbacktrace": - var allArgs = @[ - "-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace", - ] + let allArgs = @[ + "-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace", + ] for args in allArgs: + if (NimMajor, NimMinor) > (1, 6): + # First run tests with `refc` memory manager. + run args & " --mm:refc", "tests/testall" run args, "tests/testall" task docs, "Generate API documentation":