[Lldb-commits] [lldb] r121989 - /lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py

Johnny Chen johnny.chen at apple.com
Thu Dec 16 10:37:46 PST 2010


Author: johnny
Date: Thu Dec 16 12:37:46 2010
New Revision: 121989

URL: http://llvm.org/viewvc/llvm-project?rev=121989&view=rev
Log:
Use SBModule.GetDescription(SBStream) API to get the module description to match
against.

Modified:
    lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py

Modified: lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py?rev=121989&r1=121988&r2=121989&view=diff
==============================================================================
--- lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py (original)
+++ lldb/trunk/test/python_api/symbol-context/TestSymbolContext.py Thu Dec 16 12:37:46 2010
@@ -60,15 +60,16 @@
         context = frame0.GetSymbolContext(lldb.eSymbolContextEverything)
         self.assertTrue(context.IsValid())
 
+        # Get the description of this module.
         module = context.GetModule()
-        self.expect(repr(module), "The module should match", exe=False,
+        stream = lldb.SBStream()
+        module.GetDescription(stream)
+        self.expect(stream.GetData(), "The module should match", exe=False,
             substrs = [os.path.join(self.mydir, 'a.out')])
-        #print "module:", module
 
         compileUnit = context.GetCompileUnit()
         self.expect(repr(compileUnit), "The compile unit should match", exe=False,
             substrs = [os.path.join(self.mydir, 'main.c')])
-        #print "compile unit:", compileUnit
 
         function = context.GetFunction()
         self.assertTrue(function.IsValid())





More information about the lldb-commits mailing list