forked from OSchip/llvm-project
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:
parent
b103fbf005
commit
0e5bae7191
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue