diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-29 06:40:50 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-29 06:40:50 +0000 |
commit | ebb57cc44ad02e8c096ad863df6dd6b7e5b0b789 (patch) | |
tree | edfec3b8f728570d99d3d1534f2e7406b8d88437 /utils/lit | |
parent | 9712f8460de12a08e8261b794af9811f5892970c (diff) | |
download | external_llvm-ebb57cc44ad02e8c096ad863df6dd6b7e5b0b789.zip external_llvm-ebb57cc44ad02e8c096ad863df6dd6b7e5b0b789.tar.gz external_llvm-ebb57cc44ad02e8c096ad863df6dd6b7e5b0b789.tar.bz2 |
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
Diffstat (limited to 'utils/lit')
-rw-r--r-- | utils/lit/lit/TestRunner.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index c855338..4b2d626 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -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 |