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

Thanks to Francois, to let me know.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2011-11-29 06:40:50 +00:00
parent 9712f8460d
commit ebb57cc44a

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