[vtk-developers] GeoJSONReader HeaderTest failed due to Multiple Includes

Aashish Chaudhary aashish.chaudhary at kitware.com
Thu Jun 26 11:10:30 EDT 2014


Hi Jatin,

Its missing an include generated by the VTK. Have a look at the
IO/GDAL/vtkGDALVectorReader.cxx

- Aashish


On Thu, Jun 26, 2014 at 10:47 AM, Jatin Parekh <jatinparekh93 at gmail.com>
wrote:

> Hi!
> I have implemented a GeoJSON format reader in the vtkGeoJSONReader class.
> The reader works correctly by manual testing. Currently I am trying to
> write tests for the reader.
> However, while running the tests using ctest, it gives me the following
> error.
>
> On running
> [ ctest -R vtkIOGeoJSON-HeaderTest -V ]
> it gives me multiple includes error:
>
> //////////////Terminal Output//////////////////////////////////////////////
>
> test 480
>     Start 480: vtkIOGeoJSON-HeaderTest
>
> 480: Test command: /usr/bin/python
> "/media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/Testing/Core/HeaderTesting.py"
> "/media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON"
> "VTKIOGEOJSON_EXPORT"
>  480: Test timeout computed to be: 1500
> 480: Use export macro: VTKIOGEOJSON_EXPORT
> 480:
>  480: File:
> /media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON/vtkGeoJSONFeature.h
> has 2 includes:
> 480:    24: #include "vtkDataObject.h"
>  480:    25: #include "vtk_jsoncpp.h"
> 480:
> 480: File:
> /media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON/vtkGeoJSONReader.h
> has 2 includes:
>  480:    24: #include "vtkPolyDataAlgorithm.h"
> 480:    25: #include "vtk_jsoncpp.h"
>  480:
> 480: There were errors:
> 480: * Multiple includes
>  1/1 Test #480: vtkIOGeoJSON-HeaderTest ..........***Failed    0.17 sec
>
> 0% tests passed, 1 tests failed out of 1
>
> Total Test time (real) =   0.46 sec
>
> The following tests FAILED:
> 480 - vtkIOGeoJSON-HeaderTest (Failed)
>  Errors while running CTest
>
>
> ////////////////////////////////////////////////////////////////////////////////
>
> I have verified the reader by testing it on various json files, and the
> reader gives correct output. (Tested and added here:
> https://github.com/jatin3893/vtkDataSetReaders).
>
> Can someone please help me to remove the error in the HeaderTest?
> I have attached my entire VTKSource/IO/GeoJSON folder along with this
> message for reference.
> Please specify if I need to provide any more information.
>
> Thanks!
> Jatin
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>


-- 



*| Aashish Chaudhary | Technical Leader         | Kitware Inc.            *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140626/2b383e5d/attachment-0002.html>


More information about the vtk-developers mailing list