better exception behavior for os.removeFile and os.removeDir

This commit is contained in:
Araq 2011-11-06 01:59:13 +01:00
commit 0ce9d49601
3 changed files with 13 additions and 11 deletions

View file

@ -272,12 +272,7 @@ proc run(r: var TResults, dir, options: string) =
const
rodfilesDir = "tests/rodfiles"
proc delNimCache() =
try:
removeDir(rodfilesDir / "nimcache")
except EOS:
nil
proc delNimCache() = removeDir(rodfilesDir / "nimcache")
proc plusCache(options: string): string = return options & " --symbolFiles:on"
proc runRodFiles(r: var TResults, options: string) =