[Lldb-commits] [lldb] r145225 - /lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py

Greg Clayton gclayton at apple.com
Sun Nov 27 19:17:13 PST 2011


Author: gclayton
Date: Sun Nov 27 21:17:13 2011
New Revision: 145225

URL: http://llvm.org/viewvc/llvm-project?rev=145225&view=rev
Log:
Fixed an issue where we might cause our test suite to exit if we end up
concatenating a string with "None" in python. Using a python format string
gets us around this by handling it gracefully.


Modified:
    lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py

Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py?rev=145225&r1=145224&r2=145225&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py Sun Nov 27 21:17:13 2011
@@ -90,7 +90,7 @@
                                'z = 8'])
         
         # Same output, but using Python
-        self.runCmd("type summary add BagOfInts --python-script \"return 'y='+valobj.GetChildMemberWithName('y').GetValue()\" -e")
+        self.runCmd("type summary add BagOfInts --python-script \"return 'y=%s' % valobj.GetChildMemberWithName('y').GetValue()\" -e")
         self.expect('frame variable int_bag',
                     substrs = ['y=7',
                                'x = 6',





More information about the lldb-commits mailing list