[vtk-developers] vtkMathTextUtilities and otherPrint test

Brad King brad.king at kitware.com
Tue Jul 10 14:37:00 EDT 2012


On 07/10/2012 01:22 PM, David Lonie wrote:
> Thanks David,
> 
> I've a patch on the way, just checking that it builds ok now...

After checking out patch set 1:

 http://review.source.kitware.com/#/c/6405/

The python module load error goes away.  Nice.

However, the test still fails with leaks:

 calling vtkMathTextUtilities::Print
 vtkDebugLeaks has detected LEAKS!
 Class "vtkMathTextUtilities" has 1 instance still around.
 Class "vtkCommand or subclass" has 1 instance still around.

I used the patch below to isolate this class in the test.

-Brad


diff --git a/Common/Core/Testing/Tcl/otherPrint.tcl b/Common/Core/Testing/Tcl/otherPrint.tcl
index 9392153..3e8ec9d 100644
--- a/Common/Core/Testing/Tcl/otherPrint.tcl
+++ b/Common/Core/Testing/Tcl/otherPrint.tcl
@@ -13,6 +13,7 @@ a Delete
 proc rtOtherTest { fileid } {
 #actual test
     set all [lsort [info command vtk*]]
+    set all { vtkMathTextUtilities }
     foreach a $all {
   if {$a == "vtkIndent"} {
       continue



More information about the vtk-developers mailing list