[Insight-developers] Run Valgrind on one test
kent williams
norman-k-williams at uiowa.edu
Mon Jan 3 12:11:00 EST 2011
I found that valgrind on Mac OS X to be a little wonky, especially with
respect to accurate source line reporting of problems. Maybe it¹s gotten
better since I messed with it last.
But then I usually abandon a new tool at the first sign of trouble if I have
a viable alternative in this case, using valgrind on a linux machine.
On 12/20/10 9:34 AM, "Bradley Lowekamp" <blowekamp at mail.nih.gov> wrote:
> Thanks,
>
> This is what I was looking for!
>
> I had to set the following in CMake:
>
> MEMORYCHECK_COMMAND:FILEPATH=/nfs/mead/Users/blowekamp/local/bin/valgrind
> MEMORYCHECK_SUPPRESSIONS_FILE:FILEPATH=
> MEMORY_CHECK_COMMAND_OPTIONS=--trace-children=yes -v --tool=memcheck
> --leak-check=yes --gen-suppressions=all --quiet --demangle:UNINITIALIZED=yes
>
> and then this ctest functionality was working.
>
> Also I am using valgrind on the mac and it seems to be working fine!
>
> Brad
>
>
> On Dec 18, 2010, at 4:29 PM, Arnaud GELAS wrote:
>
>> Hi Brad,
>>
>> you could try:
>>
>> ctest -R ... -D ExperimentalMemCheck
>>
>> Arnaud
>>
>> On 12/18/2010 04:15 PM, Bradley Lowekamp wrote:
>>> Hello,
>>>
>>> I thought I should give valgrind for the mac a try. I would like to just one
>>> run test with it, is there a simple way to do that with ctest or should I
>>> need to assemble the command line by hand?
>>>
>>> Thanks,
>>> Brad
>>> _______________________________________________
>>> Powered by www.kitware.com <http://www.kitware.com>
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://kitware.com/products/protraining.html
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-developers
>>
>
> ========================================================
>
> Bradley Lowekamp
>
> Lockheed Martin Contractor for
>
> Office of High Performance Computing and Communications
>
> National Library of Medicine
>
> blowekamp at mail.nih.gov
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110103/03129b53/attachment.htm>
More information about the Insight-developers
mailing list