mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
This commit is contained in:
committed by
Andreas Rumpf
parent
ab425d793a
commit
540d102d87
@@ -499,7 +499,7 @@ template test*(name, body) {.dirty.} =
|
||||
|
||||
finally:
|
||||
if testStatusIMPL == FAILED:
|
||||
programResult += 1
|
||||
programResult = 1
|
||||
let testResult = TestResult(
|
||||
suiteName: when declared(testSuiteName): testSuiteName else: "",
|
||||
testName: name,
|
||||
@@ -540,7 +540,7 @@ template fail* =
|
||||
when declared(testStatusIMPL):
|
||||
testStatusIMPL = FAILED
|
||||
else:
|
||||
programResult += 1
|
||||
programResult = 1
|
||||
|
||||
ensureInitialized()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user