From 93b5b660e87631f805fe47a659ecbf011796bdd4 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 31 Aug 2016 17:38:17 +0000 Subject: 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 --- .../data-formatter/pyobjsynthprovider/TestPyObjSynthProvider.py | 2 +- .../test/functionalities/data-formatter/pyobjsynthprovider/provider.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test') 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 5cee339a4f8..db2d5806e09 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 916a1af0689..134ae83aa1c 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): -- cgit v1.2.3