diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-04-15 03:46:25 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-04-15 03:46:25 +0300 |
commit | 043a40eee6d33dec66a55c51123453c072e8d7be (patch) | |
tree | 257a029c29d5fd0a901a96b673702601a34ef5ba | |
parent | b2cc17cde487ffed4eb3f25e7b9eec55bf3e587d (diff) | |
download | Nim-043a40eee6d33dec66a55c51123453c072e8d7be.tar.gz |
fix incorrect path for rodfile tests' nimcache
-rw-r--r-- | tests/specials.nim | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/specials.nim b/tests/specials.nim index 3dc083f2e..99e5c4c10 100644 --- a/tests/specials.nim +++ b/tests/specials.nim @@ -10,20 +10,21 @@ ## Include for the tester that contains test suites that test special features ## of the compiler. +# included from tester.nim # ---------------- ROD file tests --------------------------------------------- const rodfilesDir = "tests/rodfiles" + nimcacheDir = rodfilesDir / "nimcache" -proc delNimCache() = - let dir = rodfilesDir / "nimcache" +proc delNimCache() = try: - removeDir(dir) + removeDir(nimcacheDir) except EOS: - echo "[Warning] could not delete: ", dir + echo "[Warning] could not delete: ", nimcacheDir proc plusCache(options: string): string = return options & - " --symbolFiles:on --nimcache:./nimcache" + " --symbolFiles:on --nimcache:" & nimcacheDir proc runRodFiles(r: var TResults, options: string) = template test(filename: expr): stmt = |