<div dir="ltr">I think there are cases, especially in parallel computing, where the input may consist of 0 cells. In which case it is not an error and should proceed silently. I suppose a debug macro might be helpful.<div><br></div><div>Best,<br>W</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 16, 2016 at 3:50 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Folks,<br>
<br>
I am writing a unit test for DataSetGeometryFilter. During this<br>
adventure, I noticed that the filter silently ignores the case when<br>
the input dataset has 0 cells. I added error macros for those cases.<br>
<br>
In the cdash build for my merge request I see 8 failing tests:<br>
<a href="https://open.cdash.org/viewTest.php?onlyfailed&buildid=4368497" rel="noreferrer" target="_blank">https://open.cdash.org/viewTest.php?onlyfailed&buildid=4368497</a><br>
<br>
How to handle this?<br>
1) Do not report the error and silently ignore it. This is the current approach.<br>
2) Issue a warning. A possible compromise.<br>
3) Issue an error.<br>
<br>
For 3) I will need to look at each test and see why the number of<br>
cells provided is 0. I don't mind doing this, I might discover other<br>
erros in the orther tests.<br>
<br>
Comments please,<br>
<br>
Bill<br>
<br>
BTW, my unit test covers over 90% of the code now.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>William J. Schroeder, PhD<br>Kitware, Inc. - Building the World's Technical Computing Software<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a><br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>(518) 881-4902</div></div></div>
</div>