From 9ff9713f8a2fba396e4d40cb180b52a896e5bdd1 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Wed, 5 Oct 2016 01:19:15 +0000 Subject: The collision of class C and libsystem_c.dylib:C is a failure worth preserving, but not essential to the purpose of this test so I broke it into a separate test. llvm-svn: 283289 --- .../lldbsuite/test/lang/cpp/scope/TestCppScope.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/scope') diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py b/lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py index a11a2d5b935..e34d074ba25 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py @@ -11,9 +11,19 @@ class TestCppScopes(TestBase): mydir = TestBase.compute_mydir(__file__) - @expectedFailureDarwin(bugnumber="") @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764") - def test_with_run_command(self): + def test_all_but_c(self): + self.do_test(False) + + # There's a global symbol in libsystem on Darwin that messes up + # the lookup of class C. Breaking that test out from the others + # since that is a odd failure, and I don't want it to mask the + # real purpose of this test. + @expectedFailureDarwin(bugnumber="") + def test_c(self): + self.do_test(True) + + def do_test(self, test_c): self.build() # Get main source file @@ -75,6 +85,11 @@ class TestCppScopes(TestBase): "target variable returns wrong variable " + name) for name in global_variables_assert: + if name is "C::a" and not test_c: + continue + if name is not "C::a" and test_c: + continue + value = frame.EvaluateExpression(name) assert_value = global_variables_assert[name] self.assertTrue( -- cgit v1.2.3