Always compile tests in the JS category with the JS backend (#6680)

This commit is contained in:
GULPF
2017-11-03 21:08:09 +01:00
committed by Andreas Rumpf
parent 8cc268876a
commit cf9da7d751

View File

@@ -418,8 +418,9 @@ proc `&?.`(a, b: string): string =
proc processSingleTest(r: var TResults, cat: Category, options, test: string) =
let test = "tests" & DirSep &.? cat.string / test
let target = if cat.string.normalize == "js": targetJS else: targetC
if existsFile(test): testSpec r, makeTest(test, options, cat)
if existsFile(test): testSpec r, makeTest(test, options, cat, target = target)
else: echo "[Warning] - ", test, " test does not exist"
proc processCategory(r: var TResults, cat: Category, options: string) =