[vtk-developers] GeoJSONReader HeaderTest failed due to Multiple Includes
Jatin Parekh
jatinparekh93 at gmail.com
Thu Jun 26 10:47:12 EDT 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140626/7182719d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GeoJSON.zip
Type: application/zip
Size: 22651 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140626/7182719d/attachment-0001.zip>
More information about the vtk-developers
mailing list