summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py19
1 files changed, 17 insertions, 2 deletions
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="<rdar://problem/28623427>")
@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="<rdar://problem/28623427>")
+ 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(
OpenPOWER on IntegriCloud