Skip to content

Commit 188e51b

Browse files
committed
Merge pull request #8032 from sloriot/PMP-locate_path
Fix invalid path
2 parents f407ea4 + 916282e commit 188e51b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_locate.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ void test_2D_surface_mesh(const std::string fname, CGAL::Random& rnd)
785785
if(!input || !(input >> tm))
786786
{
787787
std::cerr << "Error: cannot read file.";
788-
return;
788+
exit(1);
789789
}
790790

791791
test_locate<K>(tm, rnd);
@@ -805,7 +805,7 @@ void test_surface_mesh_3D(const std::string fname, CGAL::Random& rnd)
805805
if(!input || !(input >> tm))
806806
{
807807
std::cerr << "Error: cannot read file.";
808-
return;
808+
exit(1);
809809
}
810810

811811
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)
831831
if(!input || !(input >> tm))
832832
{
833833
std::cerr << "Error: cannot read file.";
834-
return;
834+
exit(1);
835835
}
836836

837837
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)
859859
if(!input || !(input >> poly))
860860
{
861861
std::cerr << "Error: cannot read file.";
862-
return;
862+
exit(1);
863863
}
864864

865865
test_locate<K>(poly, rnd);
@@ -870,7 +870,7 @@ void test(CGAL::Random& rnd)
870870
{
871871
test_2D_triangulation<K>("data/stair.xy", rnd);
872872
// 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);
874874
test_surface_mesh_projection<K>("data/unit-grid.off", rnd);
875875
test_polyhedron<K>("data-coref/elephant_split_2.off", rnd);
876876
}

0 commit comments

Comments
 (0)