* assertions: properly fix #11545 * tests/assert: enable excessiveStackTrace * tests/assert: add test case for #11545 * tfailedassert_stacktrace: disable excessiveStackTrace * assertions: weird workaround for failing tests This fixes megatest on *nix, but have no idea why
This commit is contained in:
parent
bd55c862a6
commit
2c10b246ec
5 changed files with 22 additions and 7 deletions
|
|
@ -1,9 +1,9 @@
|
|||
from strutils import endsWith, split
|
||||
from os import isAbsolute
|
||||
|
||||
proc checkMsg*(msg, expectedEnd, name: string)=
|
||||
proc checkMsg*(msg, expectedEnd, name: string, absolute = true)=
|
||||
let filePrefix = msg.split(' ', maxSplit = 1)[0]
|
||||
if not filePrefix.isAbsolute:
|
||||
if absolute and not filePrefix.isAbsolute:
|
||||
echo name, ":not absolute: `", msg & "`"
|
||||
elif not msg.endsWith expectedEnd:
|
||||
echo name, ":expected suffix:\n`" & expectedEnd & "`\ngot:\n`" & msg & "`"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue