Yes, this is how it's supposed to work.<br><br>The leaks are intentionally only detected as "test failures" when running a dashboard.<br><br>Now that I'm saying this, though, I can't remember what the good reason was behind that intent. :-)<br>
<br><br>Cheers,<br>David<br><br><br><div class="gmail_quote">On Fri, Jun 25, 2010 at 11:49 AM, Nicolas Rannou <span dir="ltr"><<a href="mailto:nicolas_rannou@hms.harvard.edu">nicolas_rannou@hms.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
I experienced a strange behaviour using ctest and I was wondering if it is a bug or the normal behaviour.<br>
<br>
1) Build VTK with VTK_DEBUG_LEAKS to ON<br>
2) Create a vtk leak in the test.<br>
3) Run ctest on my machine, it tells me the test passed (doesn't catch vtk leaks).<br>
<br>
$ ctest -R 3d<br>
<br>
Test project /Users/nr52/workspace/gofigure2<br>
Start 2: imageview3dTest<br>
1/6 Test #2: imageview3dTest .................. Passed 0.76 sec<br>
Start 3: vtkviewimage3dtest<br>
2/6 Test #3: vtkviewimage3dtest ............... Passed 0.33 sec<br>
Start 31: qgoimageview3dTest<br>
3/6 Test #31: qgoimageview3dTest ............... Passed 2.66 sec<br>
Start 37: qgotabimageview3dTest<br>
4/6 Test #37: qgotabimageview3dTest ............ Passed 2.47 sec<br>
Start 38: qgotabimageview3dwtTest<br>
5/6 Test #38: qgotabimageview3dwtTest .......... Passed 3.80 sec<br>
Start 50: qgotabimageview3dwtTest2<br>
6/6 Test #50: qgotabimageview3dwtTest2 ......... Passed 3.66 sec<br>
<br>
100% tests passed, 0 tests failed out of 6<br>
<br>
Total Test time (real) = 13.70 sec<br>
<br>
4) Run ctest -D Experimental to submit the test on the dashboard, it says the test is failing and reports the vtk leaks if you check on the dashboard. (<a href="http://my.cdash.org/viewTest.php?onlyfailed&buildid=77416" target="_blank">http://my.cdash.org/viewTest.php?onlyfailed&buildid=77416</a>)<br>
<br>
$ ctest -D Experimental -R 3d<br>
<br>
Site: starfish.megason-lab.hms<br>
Build name: OSX-10.5-gcc4.0.1<br>
Create new tag: 20100625-1503 - Experimental<br>
Configure project<br>
Each . represents 1024 bytes of output<br>
. Size of output: 0K<br>
Build project<br>
Each symbol represents 1024 bytes of output.<br>
'!' represents an error and '*' a warning.<br>
.*..... Size of output: 6K<br>
0 Compiler errors<br>
1 Compiler warnings<br>
Test project /Users/nr52/workspace/gofigure2<br>
Start 2: imageview3dTest<br>
1/6 Test #2: imageview3dTest .................. Passed 0.85 sec<br>
Start 3: vtkviewimage3dtest<br>
2/6 Test #3: vtkviewimage3dtest ............... Passed 0.29 sec<br>
Start 31: qgoimageview3dTest<br>
3/6 Test #31: qgoimageview3dTest ...............***Failed 2.60 sec<br>
Start 37: qgotabimageview3dTest<br>
4/6 Test #37: qgotabimageview3dTest ............ Passed 2.08 sec<br>
Start 38: qgotabimageview3dwtTest<br>
5/6 Test #38: qgotabimageview3dwtTest .......... Passed 3.27 sec<br>
Start 50: qgotabimageview3dwtTest2<br>
6/6 Test #50: qgotabimageview3dwtTest2 .........***Failed 3.21 sec<br>
<br>
67% tests passed, 2 tests failed out of 6<br>
<br>
Total Test time (real) = 12.32 sec<br>
<br>
The following tests FAILED:<br>
31 - qgoimageview3dTest (Failed)<br>
50 - qgotabimageview3dwtTest2 (Failed)<br>
Performing coverage<br>
Cannot find any coverage files. Ignoring Coverage request.<br>
Submit files (using http)<br>
Using HTTP submit method<br>
Drop site:<a href="http://my.cdash.org/submit.php?project=GoFigure2" target="_blank">http://my.cdash.org/submit.php?project=GoFigure2</a><br>
Uploaded: /Users/nr52/workspace/gofigure2/Testing/20100625-1503/Build.xml<br>
Uploaded: /Users/nr52/workspace/gofigure2/Testing/20100625-1503/Configure.xml<br>
Uploaded: /Users/nr52/workspace/gofigure2/Testing/20100625-1503/Test.xml<br>
Submission successful<br>
Errors while running CTest<br>
<br>
<br>
Is it how it is supposed to work?<br>
<br>
Thanks,<br>
<br>
Nicolas<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>