diff options
author | alaviss <alaviss@users.noreply.github.com> | 2019-07-01 11:19:07 +0000 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-01 13:19:07 +0200 |
commit | 2c10b246ec8319a9f065d5ef50fc891eeffc7ad9 (patch) | |
tree | b941e8c95bdf86d12c54a20cd80156235ff500c3 /tests/assert/testhelper.nim | |
parent | bd55c862a6ed8ee33caab2e93e1ad7f9e5bd85a5 (diff) | |
download | Nim-2c10b246ec8319a9f065d5ef50fc891eeffc7ad9.tar.gz |
assertions: fixes #11545 (#11605)
* 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
Diffstat (limited to 'tests/assert/testhelper.nim')
-rw-r--r-- | tests/assert/testhelper.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/assert/testhelper.nim b/tests/assert/testhelper.nim index 2e5ede990..03bdd2468 100644 --- a/tests/assert/testhelper.nim +++ b/tests/assert/testhelper.nim @@ -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 & "`" |