Include target in tester nimcache hash (#7053)

This commit is contained in:
Mathias Stearn 2018-01-14 09:22:48 -05:00 • committed by Andreas Rumpf
commit 6db1b492e1
2 changed files with 12 additions and 10 deletions

View file

@ -17,11 +17,12 @@ const
rodfilesDir = "tests/rodfiles"
proc delNimCache(filename, options: string) =
let dir = nimcacheDir(filename, options)
try:
removeDir(dir)
except OSError:
echo "[Warning] could not delete: ", dir
for target in low(TTarget)..high(TTarget):
let dir = nimcacheDir(filename, options, target)
try:
removeDir(dir)
except OSError:
echo "[Warning] could not delete: ", dir
proc runRodFiles(r: var TResults, cat: Category, options: string) =
template test(filename: string, clearCacheFirst=false) =