summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 19ea370)
raw | patch | inline | side by side (parent: 19ea370)
author | Alp Toker <alp@nuanti.com> | |
Mon, 28 Oct 2013 10:26:13 +0000 (10:26 +0000) | ||
committer | Alp Toker <alp@nuanti.com> | |
Mon, 28 Oct 2013 10:26:13 +0000 (10:26 +0000) |
The error raised by Python varies by platform(!), so let's just catch any
exception and fall back.
Thanks to Sylvestre Ledru for noticing this on a Debian / Python 2.7 system
running code coverage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193516 91177308-0d34-0410-b5e6-96231b3b80d8
exception and fall back.
Thanks to Sylvestre Ledru for noticing this on a Debian / Python 2.7 system
running code coverage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193516 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/run.py | patch | blob | history |
diff --git a/utils/lit/lit/run.py b/utils/lit/lit/run.py
index e3d9344d694b26cbdcc21bc4f2f95d11e204c46d..27c414d6dd65e6525cc728ac9a98d90e76931f2c 100644 (file)
--- a/utils/lit/lit/run.py
+++ b/utils/lit/lit/run.py
queue_impl = multiprocessing.Queue
canceled_flag = multiprocessing.Value('i', 0)
consumer = MultiprocessResultsConsumer(self, display, jobs)
- except ImportError:
+ except:
# multiprocessing fails to initialize with certain OpenBSD and
# FreeBSD Python versions: http://bugs.python.org/issue3770
+ # Unfortunately the error raised also varies by platform.
self.lit_config.note('failed to initialize multiprocessing')
consumer = None
if not consumer: