@@ -785,7 +785,7 @@ void test_2D_surface_mesh(const std::string fname, CGAL::Random& rnd)
785
785
if (!input || !(input >> tm))
786
786
{
787
787
std::cerr << " Error: cannot read file." ;
788
- return ;
788
+ exit ( 1 ) ;
789
789
}
790
790
791
791
test_locate<K>(tm, rnd);
@@ -805,7 +805,7 @@ void test_surface_mesh_3D(const std::string fname, CGAL::Random& rnd)
805
805
if (!input || !(input >> tm))
806
806
{
807
807
std::cerr << " Error: cannot read file." ;
808
- return ;
808
+ exit ( 1 ) ;
809
809
}
810
810
811
811
typedef typename boost::property_map<Mesh, CGAL::vertex_point_t >::const_type VertexPointMap;
@@ -831,7 +831,7 @@ void test_surface_mesh_projection(const std::string fname, CGAL::Random& rnd)
831
831
if (!input || !(input >> tm))
832
832
{
833
833
std::cerr << " Error: cannot read file." ;
834
- return ;
834
+ exit ( 1 ) ;
835
835
}
836
836
837
837
const auto & proj_vpm = tm.template add_property_map <typename Mesh::Vertex_index,
@@ -859,7 +859,7 @@ void test_polyhedron(const std::string fname, CGAL::Random& rnd)
859
859
if (!input || !(input >> poly))
860
860
{
861
861
std::cerr << " Error: cannot read file." ;
862
- return ;
862
+ exit ( 1 ) ;
863
863
}
864
864
865
865
test_locate<K>(poly, rnd);
@@ -870,7 +870,7 @@ void test(CGAL::Random& rnd)
870
870
{
871
871
test_2D_triangulation<K>(" data/stair.xy" , rnd);
872
872
// test_2D_surface_mesh<K>("data/blobby_2D.off", rnd); // temporarily disabled, until Surface_mesh's IO is "fixed"
873
- test_surface_mesh_3D<K>(" meshes/mech-holes-shark.off" , rnd);
873
+ test_surface_mesh_3D<K>(CGAL::data_file_path ( " meshes/mech-holes-shark.off" ) , rnd);
874
874
test_surface_mesh_projection<K>(" data/unit-grid.off" , rnd);
875
875
test_polyhedron<K>(" data-coref/elephant_split_2.off" , rnd);
876
876
}
0 commit comments