[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    Re: [vtk-developers] testsetget/emptyinput etc
From:       David Cole <david.cole () kitware ! com>
Date:       2012-09-28 21:32:36
Message-ID: CAAdwe9WeXk5okaJX3GpEp_ohKR3XW84yY1M7fRfCUsRYbw0njw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Not that I'm one of the ancient ones, yet...... :-)


On Fri, Sep 28, 2012 at 5:32 PM, David Cole <david.cole@kitware.com> wrote:

> Most of the time, when the Tcl SetGet test fails on a new change, it is
> that somebody has added a pointer ivar, and initialized it to "NULL" or 0,
> and then it is accessed in a Get method without being checked.
>
> This test helps to catch things like that, and usually, the correction is
> just to add an "if ()" test that verifies the pointer is non-null before
> dereferencing.
>
> All VTK devs need to understand that methods are called (by various people
> in the real world) in an order different than the one they expect. Just
> because the new test that they wrote does it correctly doesn't mean anybody
> else will.
>
> This test helps to make all the methods robust no matter what order they
> are called in.
>
>
>
> On Fri, Sep 28, 2012 at 5:22 PM, David E DeMarle <dave.demarle@kitware.com
> > wrote:
>
>> Thanks.
>>
>> I'm looking for more details.
>>
>> Specifically why is it a bad thing when each of our specific smoke tests
>> fail on some new code and when exceptions for that test are acceptable.
>>  On Sep 28, 2012 4:26 PM, "Bill Lorensen" <bill.lorensen@gmail.com>
>> wrote:
>>
>>> Dave,
>>>
>>> "Ancient ones"?  We prefer "Wise ones"...
>>>
>>> These are smoke tests: http://en.wikipedia.org/wiki/Smoke_testing
>>>  to blinding test basic functionality. They certainly matter.
>>>
>>> For example SetGet tests ensure that a variable can be set  and
>>> retrieved. In the past we had tests that ensured that if a variable was
>>> changed, the class' modified time changed. Or, can a class print itself
>>> after instantiation.
>>>
>>> Bill
>>>
>>> Sep 28, 2012 at 4:10 PM, David E DeMarle <dave.demarle@kitware.com>wrote:
>>>
>>>> Could one of the ancient* ones on the list explain the rationale
>>>> behind these and the other old tcl style tests?
>>>>
>>>> They are failing now in some of the new classes that were
>>>> added/changed during the big test downtime that started when
>>>> modularization went in. Before I get deep into the job of fixing them
>>>> (or convincing the responsible parties that they should), I'ld like to
>>>> know if and why they matter.
>>>>
>>>> thanks,
>>>>
>>>> *I'm not mentioning any names here Will.
>>>>
>>>> David E DeMarle
>>>> Kitware, Inc.
>>>> R&D Engineer
>>>> 21 Corporate Drive
>>>> Clifton Park, NY 12065-8662
>>>> Phone: 518-881-4909David E DeMarle
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>>>
>>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>>
>

[Attachment #5 (text/html)]

Not that I&#39;m one of the ancient ones, yet...... :-)<div><br><br><div \
class="gmail_quote">On Fri, Sep 28, 2012 at 5:32 PM, David Cole <span \
dir="ltr">&lt;<a href="mailto:david.cole@kitware.com" \
target="_blank">david.cole@kitware.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Most of the time, when the Tcl SetGet test fails on a new \
change, it is that somebody has added a pointer ivar, and initialized it to \
&quot;NULL&quot; or 0, and then it is accessed in a Get method without being \
checked.<div>

<br></div><div>This test helps to catch things like that, and usually, the correction \
is just to add an &quot;if ()&quot; test that verifies the pointer is non-null before \
dereferencing.<br><br>All VTK devs need to understand that methods are called (by \
various people in the real world) in an order different than the one they expect. \
Just because the new test that they wrote does it correctly doesn&#39;t mean anybody \
else will.</div>

<div><br></div><div>This test helps to make all the methods robust no matter what \
order they are called in.<div><div class="h5"><br><br><br><div class="gmail_quote">On \
Fri, Sep 28, 2012 at 5:22 PM, David E DeMarle <span dir="ltr">&lt;<a \
href="mailto:dave.demarle@kitware.com" \
target="_blank">dave.demarle@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><p>Thanks. </p> <p>I&#39;m looking for more details.</p>
<p>Specifically why is it a bad thing when each of our specific smoke tests fail on \
some new code and when exceptions for that test are acceptable.<br> </p><div><div>
<div class="gmail_quote">On Sep 28, 2012 4:26 PM, &quot;Bill Lorensen&quot; &lt;<a \
href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt; \
wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">


Dave,<br><br>&quot;Ancient ones&quot;?  We prefer &quot;Wise \
ones&quot;...<br><br>These are smoke tests: <a \
href="http://en.wikipedia.org/wiki/Smoke_testing" \
target="_blank">http://en.wikipedia.org/wiki/Smoke_testing</a><br>


 to blinding test basic functionality. They certainly matter.<br>
<br>For example SetGet tests ensure that a variable can be set  and retrieved. In the \
past we had tests that ensured that if a variable was changed, the class&#39; \
modified time changed. Or, can a class print itself after instantiation.<br>



<br>Bill<br><br>Sep 28, 2012 at 4:10 PM, David E DeMarle <span dir="ltr">&lt;<a \
href="mailto:dave.demarle@kitware.com" \
target="_blank">dave.demarle@kitware.com</a>&gt;</span> wrote:<br><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">



Could one of the ancient* ones on the list explain the rationale<br>
behind these and the other old tcl style tests?<br>
<br>
They are failing now in some of the new classes that were<br>
added/changed during the big test downtime that started when<br>
modularization went in. Before I get deep into the job of fixing them<br>
(or convincing the responsible parties that they should), I&#39;ld like to<br>
know if and why they matter.<br>
<br>
thanks,<br>
<br>
*I&#39;m not mentioning any names here Will.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&amp;D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909David E DeMarle<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><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at \
noware dot com<br><br> </blockquote></div>
</div></div><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>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic