lit/TestRunner.py: Use RemoveForce().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2011-11-28 01:55:08 +00:00
parent fc1a1870b5
commit b0c95fbaf9

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