[Ktutorial-commits] SF.net SVN: ktutorial:[81] trunk/ktutorial/test/runMemcheck.py
Status: Alpha
Brought to you by:
danxuliu
|
From: <dan...@us...> - 2010-02-08 17:23:12
|
Revision: 81
http://ktutorial.svn.sourceforge.net/ktutorial/?rev=81&view=rev
Author: danxuliu
Date: 2010-02-08 17:23:05 +0000 (Mon, 08 Feb 2010)
Log Message:
-----------
According to Valgrind XML output documentation (docs/internals/xml-output-protocol4.txt), the information can be stored in xwhat or what elements, depending on whether it contains extra data or not.
Modified Paths:
--------------
trunk/ktutorial/test/runMemcheck.py
Modified: trunk/ktutorial/test/runMemcheck.py
===================================================================
--- trunk/ktutorial/test/runMemcheck.py 2010-02-07 00:28:25 UTC (rev 80)
+++ trunk/ktutorial/test/runMemcheck.py 2010-02-08 17:23:05 UTC (rev 81)
@@ -79,7 +79,9 @@
for frame in stack:
if xml_child_data(frame, 'fn'): # filter anonymous frames out
self.stack.append(Frame(frame))
- self.what = xml_child_data(self.dom.getElementsByTagName('xwhat')[0], 'text')
+ self.what = xml_child_data(self.dom, 'what')
+ if self.dom.getElementsByTagName('xwhat').length > 0:
+ self.what = xml_child_data(self.dom.getElementsByTagName('xwhat')[0], 'text')
def is_definitely_lost(self):
return self.kind == u'Leak_DefinitelyLost'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|