From 7b02247ce74d5ad5630013334f2e347680b02f65 Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Wed, 14 Feb 2024 19:23:15 +0200 Subject: [PATCH] Add `--mm:refc` to `libbacktrace` test. (#505) * Add `--mm:refc` to `libbacktrace` test. * Make tests with `refc` to run before tests with default memory manager. --- chronos.nimble | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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":