summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-06-11 16:49:56 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-06-11 16:49:56 +0200
commitc7e1c665a1d399272bef35395a6c364b9f98d64a (patch)
tree36e3be6be3f0e362ac0ccd09d57669ddb022d3f5 /tests
parent3d13103443f0fb4630e648ad7eabd2b40f0be52b (diff)
downloadNim-c7e1c665a1d399272bef35395a6c364b9f98d64a.tar.gz
[refactoring] refactor the compiler and stdlib to deprecation warnings (#11419)
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/tproper_stacktrace.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/errmsgs/tproper_stacktrace.nim b/tests/errmsgs/tproper_stacktrace.nim
index c0090a595..c7dfbaf2a 100644
--- a/tests/errmsgs/tproper_stacktrace.nim
+++ b/tests/errmsgs/tproper_stacktrace.nim
@@ -22,7 +22,7 @@ proc matchStackTrace(actualEntries: openarray[StackTraceEntry], expected: string
     var line: int
     if not scanf(l, "$s$w.nim($i) $w", filename, line, procname):
       doAssert(false, "Wrong expected stack trace")
-    checkEqual($actualEntries[i].filename, filename & ".nim", "file name")
+    checkEqual(actualEntries[i].filename.`$`.split('/')[^1], filename & ".nim", "file name")
     if line != 0:
       checkEqual(actualEntries[i].line, line, "line number")
     checkEqual($actualEntries[i].procname, procname, "proc name")