better exception behavior for os.removeFile and os.removeDir
This commit is contained in:
parent
089e287c6e
commit
0ce9d49601
3 changed files with 13 additions and 11 deletions
|
|
@ -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) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue