diff options
author | Jim Ingham <jingham@apple.com> | 2016-10-05 01:19:15 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2016-10-05 01:19:15 +0000 |
commit | 9ff9713f8a2fba396e4d40cb180b52a896e5bdd1 (patch) | |
tree | 050a9941f432a45c21e930ebf7e6be12bf1bd4a8 /lldb/packages/Python/lldbsuite/test/lang/cpp/scope | |
parent | a6f81ca8ea4d8f63532a217857685ec475f9459e (diff) | |
download | bcm5719-llvm-9ff9713f8a2fba396e4d40cb180b52a896e5bdd1.tar.gz bcm5719-llvm-9ff9713f8a2fba396e4d40cb180b52a896e5bdd1.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/scope')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/scope/TestCppScope.py | 19 |
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( |