diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-08-05 21:55:15 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-05 21:55:15 +0000 |
| commit | 7af935ed9a09b1963666c3daf20b4a621ab091eb (patch) | |
| tree | 1576f21c5c11d15adab462e1ad1c5de942975ae7 /lldb/test/python_api/default-constructor | |
| parent | 9dd9b882aed2b9b63d90f9ebe7a04a8f24982f1e (diff) | |
| download | bcm5719-llvm-7af935ed9a09b1963666c3daf20b4a621ab091eb.tar.gz bcm5719-llvm-7af935ed9a09b1963666c3daf20b4a621ab091eb.zip | |
Fixed test suite failure of test_SBTypeList().
SBTypeList does not have IsValid() method defined. It's always valid in a sense.
So the Python's truth value testing in turn delegates to __len__() method, which
is defined for SBTypeList, and returns 0.
llvm-svn: 136985
Diffstat (limited to 'lldb/test/python_api/default-constructor')
| -rw-r--r-- | lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py index f567ce7fded..69a45506110 100644 --- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py +++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py @@ -316,7 +316,10 @@ class APIDefaultConstructorTestCase(TestBase): obj = lldb.SBTypeList() if self.TraceOn(): print obj - self.assertTrue(obj) + # SBTypeList does not have IsValid() method defined. It's always valid + # in a sense. So the Python's truth value testing in turn delegates to + # __len__() method, which is defined for SBTypeList, and returns 0. + self.assertFalse(obj) @python_api_test def test_SBValue(self): |

