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.
This commit is contained in:
parent
2e37a6e26c
commit
7b02247ce7
|
@ -54,17 +54,20 @@ task examples, "Build examples":
|
||||||
|
|
||||||
task test, "Run all tests":
|
task test, "Run all tests":
|
||||||
for args in testArguments:
|
for args in testArguments:
|
||||||
run args, "tests/testall"
|
|
||||||
if (NimMajor, NimMinor) > (1, 6):
|
if (NimMajor, NimMinor) > (1, 6):
|
||||||
|
# First run tests with `refc` memory manager.
|
||||||
run args & " --mm:refc", "tests/testall"
|
run args & " --mm:refc", "tests/testall"
|
||||||
|
run args, "tests/testall"
|
||||||
|
|
||||||
task test_libbacktrace, "test with libbacktrace":
|
task test_libbacktrace, "test with libbacktrace":
|
||||||
var allArgs = @[
|
let allArgs = @[
|
||||||
"-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace",
|
"-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace",
|
||||||
]
|
]
|
||||||
|
|
||||||
for args in allArgs:
|
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"
|
run args, "tests/testall"
|
||||||
|
|
||||||
task docs, "Generate API documentation":
|
task docs, "Generate API documentation":
|
||||||
|
|
Loading…
Reference in New Issue