summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-01-10 10:18:47 +0000
committerPavel Labath <labath@google.com>2018-01-10 10:18:47 +0000
commit698d63a61a51438182127fc4ce56a535d532b182 (patch)
tree30f8fa133a6297d87d72c083a386ecb7b3efedb7 /lldb/packages/Python/lldbsuite/test/configuration.py
parent886510f350bd5f4972602263c225098bb2f8aa77 (diff)
downloadbcm5719-llvm-698d63a61a51438182127fc4ce56a535d532b182.tar.gz
bcm5719-llvm-698d63a61a51438182127fc4ce56a535d532b182.zip
[dotest] Remove crashinfo hook
Summary: This used to be important when all tests were run in a single process, but that has no longer been the case for a while. Furthermore, this hook fails to build on new mac versions for several people, and it's not clear whether fixing it is worth the effort. Reviewers: jingham, clayborg, davide Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D41871 llvm-svn: 322167
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/configuration.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py
index a49948c0205..25fb1b1b474 100644
--- a/lldb/packages/Python/lldbsuite/test/configuration.py
+++ b/lldb/packages/Python/lldbsuite/test/configuration.py
@@ -24,40 +24,6 @@ import unittest2
import lldbsuite
-def __setCrashInfoHook_Mac(text):
- from . import crashinfo
- crashinfo.setCrashReporterDescription(text)
-
-
-def setupCrashInfoHook():
- if platform.system() == "Darwin":
- from . import lock
- test_dir = os.environ['LLDB_TEST']
- if not test_dir or not os.path.exists(test_dir):
- return
- dylib_lock = os.path.join(test_dir, "crashinfo.lock")
- dylib_src = os.path.join(test_dir, "crashinfo.c")
- dylib_dst = os.path.join(test_dir, "crashinfo.so")
- try:
- compile_lock = lock.Lock(dylib_lock)
- compile_lock.acquire()
- if not os.path.isfile(dylib_dst) or os.path.getmtime(
- dylib_dst) < os.path.getmtime(dylib_src):
- # we need to compile
- cmd = "SDKROOT= xcrun clang %s -o %s -framework Python -Xlinker -dylib" % (
- dylib_src, dylib_dst)
- if subprocess.call(
- cmd, shell=True) != 0 or not os.path.isfile(dylib_dst):
- raise Exception('command failed: "{}"'.format(cmd))
- finally:
- compile_lock.release()
- del compile_lock
-
- setCrashInfoHook = __setCrashInfoHook_Mac
-
- else:
- pass
-
# The test suite.
suite = unittest2.TestSuite()
OpenPOWER on IntegriCloud