diff options
author | Pavel Labath <labath@google.com> | 2017-04-20 11:28:07 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-04-20 11:28:07 +0000 |
commit | 7b46633c4baaf88e96711ca9fc0effec6950efc2 (patch) | |
tree | b90ae4d14490046b5c310b3f50a6444789ee353d /lldb/packages/Python/lldbsuite/test/lang/cpp/class_static | |
parent | a93310ad2ae74264eadda3e790d4f6c189ba8c60 (diff) | |
download | bcm5719-llvm-7b46633c4baaf88e96711ca9fc0effec6950efc2.tar.gz bcm5719-llvm-7b46633c4baaf88e96711ca9fc0effec6950efc2.zip |
Make TestStaticVariables XFAIL more specific
The test fails because an older clang did not emit the required debug
info (I am not sure when this got added, but clang-3.7 certainly did not
work yet). The actual platform has nothing to do with this.
llvm-svn: 300834
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/class_static')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py index 0230a96919a..0100a2727b3 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py @@ -60,10 +60,9 @@ class StaticVariableTestCase(TestBase): compiler=["gcc"], bugnumber="Compiler emits incomplete debug info") @expectedFailureAll( - oslist=['linux']) - @expectedFailureAll( - oslist=['freebsd'], - bugnumber='llvm.org/pr20550 failing on FreeBSD-11') + compiler=["clang"], + compiler_version=["<", "3.8"], + bugnumber='llvm.org/pr20550') @add_test_categories(['pyapi']) def test_with_python_api(self): """Test Python APIs on file and class static variables.""" @@ -102,11 +101,11 @@ class StaticVariableTestCase(TestBase): if name == 'g_points': self.assertTrue( val.GetValueType() == lldb.eValueTypeVariableStatic) - self.assertTrue(val.GetNumChildren() == 2) + self.assertEqual(val.GetNumChildren(), 2) elif name == 'A::g_points': self.assertTrue( val.GetValueType() == lldb.eValueTypeVariableGlobal) - self.assertTrue(val.GetNumChildren() == 2) + self.assertEqual(val.GetNumChildren(), 2) child1 = val.GetChildAtIndex(1) self.DebugSBValue(child1) child1_x = child1.GetChildAtIndex(0) |