[Lldb-commits] [lldb] r136985 - /lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
Johnny Chen
johnny.chen at apple.com
Fri Aug 5 14:55:15 PDT 2011
Author: johnny
Date: Fri Aug 5 16:55:15 2011
New Revision: 136985
URL: http://llvm.org/viewvc/llvm-project?rev=136985&view=rev
Log:
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.
Modified:
lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
Modified: lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py?rev=136985&r1=136984&r2=136985&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py (original)
+++ lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py Fri Aug 5 16:55:15 2011
@@ -316,7 +316,10 @@
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):
More information about the lldb-commits
mailing list