lit/TestRunner.py: Use RemoveForce().

llvm-svn: 145223
This commit is contained in:
NAKAMURA Takumi 2011-11-28 01:55:08 +00:00
parent 6393cd009c
commit e33c002bee

View File

@ -269,10 +269,7 @@ def executeShCmd(cmd, cfg, cwd, results):
# Remove any named temporary files we created.
for f in named_temp_files:
try:
os.remove(f)
except OSError:
pass
RemoveForce(f)
if cmd.negate:
exitCode = not exitCode