[vtkusers] HeaderTest failures

Kevin Dixon kevinrdixon at gmail.com
Mon Nov 28 05:50:36 EST 2016


Found the issue - these tests run just fine when the Python executable is
3.x.
When Python 2.x is used they fail because the Python script
HeaderTesting.py fails to strip newlines/carriage returns from the class
names parsed from the headers.
Simple fix is to alter the script to strip out control characters.

Issue raised: https://gitlab.kitware.com/vtk/vtk/issues/16922

On 25 November 2016 at 16:54, Kevin Dixon <kevinrdixon at gmail.com> wrote:

> I've been able to successfully build VTK 7.0.0 from source with
> BUILD_TESTING set to ON. However, unmodified a number of the HeaderTests
> fail:
>
>   1 - vtkCommonCore-HeaderTest (Failed)
>
>   8 - vtkCommonExecutionModel-HeaderTest (Failed)
>
>   9 - vtkFiltersCore-HeaderTest (Failed)
>
> 11 - vtkFiltersGeneral-HeaderTest (Failed)
>
> 17 - vtkFiltersGeometry-HeaderTest (Failed)
>
> 19 - vtkRenderingCore-HeaderTest (Failed)
>
> 31 - vtkRenderingOpenGL2-HeaderTest (Failed)
>
> 38 - vtkInteractionStyle-HeaderTest (Failed)
>
> 40 - vtkRenderingAnnotation-HeaderTest (Failed)
>
> 42 - vtkInteractionWidgets-HeaderTest (Failed)
>
> 270 - vtkRenderingVolumeOpenGL2-HeaderTest (Failed)
>
> 312 - vtkFiltersFlowPaths-HeaderTest (Failed)
>
> 489 - vtkIOExodus-HeaderTest (Failed)
>
>
> Example of one of the test output in detail:
>
>
> Start 1: vtkCommonCore-HeaderTest
>
> 1: Test command: /usr/bin/python "/Users/kevin/dev/prj/lms/
> soup/vtk-7.0.0/Testing/Core/HeaderTesting.py" "/Users/kevin/dev/prj/lms/soup/vtk-7.0.0/Common/Core"
> "VTKCOMMONCORE_EXPORT"
>
> 1: Test timeout computed to be: 1500
>
> 1: Use export macro: VTKCOMMONCORE_EXPORT
>
> 1: File: /Users/kevin/dev/prj/lms/soup/vtk-7.0.0/Common/Core/
> vtkMinimalStandardRandomSequence.h has broken type macro(s):
>
> 1:    41: vtkTypeMacro(vtkMinimalStandardRandomSequen
> ce,vtkRandomSequence);
>
> 1: Should be:
>
> , vtkRandomSequence)MinimalStandardRandomSequence
>
> 1: File: /Users/kevin/dev/prj/lms/soup/vtk-7.0.0/Common/Core/
> vtkMinimalStandardRandomSequence.h does not define copy constructor
>
> 1: Should be:
>
> &); // Not implementedardRandomSequence
>
> 1: File: /Users/kevin/dev/prj/lms/soup/vtk-7.0.0/Common/Core/
> vtkMinimalStandardRandomSequence.h does not define assignment operator
>
> 1: Should be:
>
> &); // Not implementedt vtkMinimalStandardRandomSequence
>
> 1:
>
> 1: There were errors:
>
> 1: * Broken type macro
>
> 1: * No private copy constructor
>
> 1: * No private assignment operator
>
> 1/1 Test #1: vtkCommonCore-HeaderTest .........***Failed    0.64 sec
>
>
> From what I can see, these are code stylistic checks via the
> 'HeaderTesting.py' script.
>
> Any idea why these are failing out-of-the-box without modification?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161128/ed3b8a42/attachment.html>


More information about the vtkusers mailing list