From e33c002bee837c5b3fa5eba6c87d75710fe23b7d Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 28 Nov 2011 01:55:08 +0000 Subject: [PATCH] lit/TestRunner.py: Use RemoveForce(). llvm-svn: 145223 --- utils/lit/lit/TestRunner.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index b450c33df62..c85533829d8 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -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