fix incorrect path for rodfile tests' nimcache
This commit is contained in:
parent
b2cc17cde4
commit
043a40eee6
1 changed files with 6 additions and 5 deletions
|
|
@ -10,20 +10,21 @@
|
||||||
## Include for the tester that contains test suites that test special features
|
## Include for the tester that contains test suites that test special features
|
||||||
## of the compiler.
|
## of the compiler.
|
||||||
|
|
||||||
|
# included from tester.nim
|
||||||
# ---------------- ROD file tests ---------------------------------------------
|
# ---------------- ROD file tests ---------------------------------------------
|
||||||
|
|
||||||
const
|
const
|
||||||
rodfilesDir = "tests/rodfiles"
|
rodfilesDir = "tests/rodfiles"
|
||||||
|
nimcacheDir = rodfilesDir / "nimcache"
|
||||||
|
|
||||||
proc delNimCache() =
|
proc delNimCache() =
|
||||||
let dir = rodfilesDir / "nimcache"
|
|
||||||
try:
|
try:
|
||||||
removeDir(dir)
|
removeDir(nimcacheDir)
|
||||||
except EOS:
|
except EOS:
|
||||||
echo "[Warning] could not delete: ", dir
|
echo "[Warning] could not delete: ", nimcacheDir
|
||||||
|
|
||||||
proc plusCache(options: string): string = return options &
|
proc plusCache(options: string): string = return options &
|
||||||
" --symbolFiles:on --nimcache:./nimcache"
|
" --symbolFiles:on --nimcache:" & nimcacheDir
|
||||||
|
|
||||||
proc runRodFiles(r: var TResults, options: string) =
|
proc runRodFiles(r: var TResults, options: string) =
|
||||||
template test(filename: expr): stmt =
|
template test(filename: expr): stmt =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue