From: Pavel Labath Date: Wed, 31 Aug 2016 17:38:17 +0000 (+0000) Subject: Fixup TestPyObjSynthProvider.py and enable it again X-Git-Tag: llvmorg-4.0.0-rc1~10977 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93b5b660e87631f805fe47a659ecbf011796bdd4;p=platform%2Fupstream%2Fllvm.git Fixup TestPyObjSynthProvider.py and enable it again Summary: - copies the new file in the cmake build - adds an additional import statement - marks the test as no-debug-info specific, as it seems to be testing a python feature Reviewers: granata.enrico Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D24074 llvm-svn: 280261 --- diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/TestPyObjSynthProvider.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/TestPyObjSynthProvider.py index 5cee339..db2d580 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/TestPyObjSynthProvider.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/TestPyObjSynthProvider.py @@ -16,8 +16,8 @@ from lldbsuite.test import lldbutil class PyObjectSynthProviderTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) + NO_DEBUG_INFO_TESTCASE = True - @expectedFailureAll(oslist=["linux"]) def test_print_array(self): """Test that expr -Z works""" self.build() diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py index 916a1af..134ae83 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py @@ -1,5 +1,6 @@ import lldb import lldb.formatters +import lldb.formatters.synth class SyntheticChildrenProvider(lldb.formatters.synth.PythonObjectSyntheticChildProvider): def __init__(self, value, internal_dict): diff --git a/lldb/scripts/Python/finishSwigPythonLLDB.py b/lldb/scripts/Python/finishSwigPythonLLDB.py index 4d733a1..6d51a4b 100644 --- a/lldb/scripts/Python/finishSwigPythonLLDB.py +++ b/lldb/scripts/Python/finishSwigPythonLLDB.py @@ -793,6 +793,7 @@ def main(vDictArgs): # Having these files copied here ensure that lldb/formatters is a # valid package itself listPkgFiles = [os.path.join(strRoot, "examples", "summaries", "cocoa", "cache.py"), + os.path.join(strRoot, "examples", "summaries", "synth.py"), os.path.join(strRoot, "examples", "summaries", "cocoa", "metrics.py"), os.path.join(strRoot, "examples", "summaries", "cocoa", "attrib_fromdict.py"), os.path.join(strRoot, "examples", "summaries", "cocoa", "Logger.py")]