lit/TestRunner.py: Try to catch ERROR_FILE_NOT_FOUND, too.

Thanks to Francois, to let me know.

llvm-svn: 145381
This commit is contained in:
NAKAMURA Takumi 2011-11-29 06:40:50 +00:00
parent b103fbf005
commit 0e5bae7191
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ def WinWaitReleased(f):
WinRename(f, t) # rename
WinRename(t, f) # restore
except WindowsError, (winerror, strerror):
if winerror == 3: # ERROR_PATH_NOT_FOUND
if winerror in (2, 3):
# 2: ERROR_FILE_NOT_FOUND
# 3: ERROR_PATH_NOT_FOUND
pass
else:
raise