Skip to content

Commit

Permalink
lit/TestRunner.py: Try to catch ERROR_FILE_NOT_FOUND, too.
Browse files Browse the repository at this point in the history
Thanks to Francois, to let me know.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145381 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Nov 29, 2011
1 parent 9712f84 commit ebb57cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/lit/lit/TestRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebb57cc

Please sign in to comment.