parent
4007b2a778
commit
a2ec2db8f2
5 changed files with 45 additions and 22 deletions
|
|
@ -1063,7 +1063,11 @@ proc test(options: Options) =
|
|||
existsAfter = existsFile(binFileName)
|
||||
canRemove = not existsBefore and existsAfter
|
||||
if canRemove:
|
||||
removeFile(binFileName)
|
||||
try:
|
||||
removeFile(binFileName)
|
||||
except OSError as exc:
|
||||
display("Warning:", "Failed to delete " & binFileName & ": " &
|
||||
exc.msg, Warning, MediumPriority)
|
||||
|
||||
if failures == 0:
|
||||
display("Success:", "All tests passed", Success, HighPriority)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue