print more to see the test in the log that was never finished.
This commit is contained in:
parent
a29ec40032
commit
1f7dcb874d
2 changed files with 4 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ type
|
|||
actionCompile = "compile"
|
||||
actionReject = "reject"
|
||||
actionRunNoSpec = "runNoSpec"
|
||||
|
||||
TResultEnum* = enum
|
||||
reNimcCrash, # nim compiler seems to have crashed
|
||||
reMsgsDiffer, # error messages differ
|
||||
|
|
@ -39,6 +40,7 @@ type
|
|||
reBuildFailed # package building failed
|
||||
reIgnored, # test is ignored
|
||||
reSuccess # test was successful
|
||||
|
||||
TTarget* = enum
|
||||
targetC = "C"
|
||||
targetCpp = "C++"
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ proc addResult(r: var TResults, test: TTest, target: TTarget,
|
|||
expected, given: string, success: TResultEnum) =
|
||||
let name = test.name.extractFilename & " " & $target & test.options
|
||||
let duration = epochTime() - test.startTime
|
||||
let durationStr = duration.formatFloat(ffDecimal, precision = 8)
|
||||
let durationStr = duration.formatFloat(ffDecimal, precision = 8).align(11)
|
||||
backend.writeTestResult(name = name,
|
||||
category = test.cat.string,
|
||||
target = $target,
|
||||
|
|
@ -465,6 +465,7 @@ proc testExec(r: var TResults, test: TTest) =
|
|||
proc makeTest(test, options: string, cat: Category, action = actionCompile,
|
||||
env: string = ""): TTest =
|
||||
# start with 'actionCompile', will be overwritten in the spec:
|
||||
echo "makeTest: ", test
|
||||
result = TTest(cat: cat, name: test, options: options,
|
||||
action: action, startTime: epochTime())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue