[Lldb-commits] [lldb] r133602 - /lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py

Johnny Chen johnny.chen at apple.com
Tue Jun 21 19:39:46 PDT 2011


Author: johnny
Date: Tue Jun 21 21:39:46 2011
New Revision: 133602

URL: http://llvm.org/viewvc/llvm-project?rev=133602&view=rev
Log:
Recent change to SBSymbolContextList (r133498) makes the default constructor return
a valid SB API object.  Modify the test case to accommodate.

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=133602&r1=133601&r2=133602&view=diff
==============================================================================
--- lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py (original)
+++ lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py Tue Jun 21 21:39:46 2011
@@ -2,8 +2,8 @@
 Test lldb Python API object's default constructor and make sure it is invalid
 after initial construction.
 
-There are two exceptions to the above general rules, though; the API objects are
-SBCommadnReturnObject and SBStream.
+There are three exceptions to the above general rules, though; the API objects are
+SBCommadnReturnObject, SBStream, and SBSymbolContextList.
 """
 
 import os, time
@@ -198,7 +198,7 @@
         obj = lldb.SBSymbolContextList()
         if self.TraceOn():
             print obj
-        self.assertFalse(obj)
+        self.assertTrue(obj)
 
     @python_api_test
     def test_SBTarget(self):





More information about the lldb-commits mailing list