fix js category
This commit is contained in:
parent
e9ea8fb6b0
commit
465e742182
2 changed files with 5 additions and 4 deletions
|
|
@ -384,7 +384,7 @@ proc testSpec(r: var TResults, test: TTest, targets: set[TTarget] = {}) =
|
|||
let isJsTarget = target == targetJS
|
||||
var exeFile: string
|
||||
if isJsTarget:
|
||||
let file = changeFileExt(test.name, "js")
|
||||
let file = test.name.lastPathPart.changeFileExt("js")
|
||||
exeFile = nimcacheDir(test.name, test.options, target) / file
|
||||
else:
|
||||
exeFile = changeFileExt(test.name, ExeExt)
|
||||
|
|
@ -428,8 +428,8 @@ proc testSpec(r: var TResults, test: TTest, targets: set[TTarget] = {}) =
|
|||
bufB, reExitCodesDiffer)
|
||||
continue
|
||||
|
||||
if (expected.outputCheck == ocEqual and bufB != expected.outp) or
|
||||
(expected.outputCheck == ocSubstr and bufB notin expected.outp):
|
||||
if (expected.outputCheck == ocEqual and expected.outp != bufB) or
|
||||
(expected.outputCheck == ocSubstr and expected.outp notin bufB):
|
||||
given.err = reOutputsDiffer
|
||||
r.addResult(test, target, expected.outp, bufB, reOutputsDiffer)
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ t7224.ccc, line: 15
|
|||
t7224.ddd, line: 12
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
proc ddd() =
|
||||
raise newException(IOError, "didn't do stuff")
|
||||
|
||||
|
|
@ -22,5 +22,6 @@ proc aaa() =
|
|||
|
||||
try:
|
||||
aaa()
|
||||
|
||||
except IOError as e:
|
||||
echo getStackTrace(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue