diff --git a/sonar-project.properties b/sonar-project.properties index 7ae4e9d7..d50f1e2a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -5,7 +5,7 @@ sonar.tests = ./tests/ sonar.cfamily.build-wrapper-output=cfamily-output sonar.cfamily.cache.enabled=false # sonar.cfamily.cache.path=relative_or_absolute_path_to_cache_location -sonar.coverage.exclusions = ./tests/files/* ./src/ngl/* ./src/shaders/* ./tests/files/* +sonar.coverage.exclusions = ./tests/files/* ./src/ngl/* ./src/shaders/* sonar.c.file.suffixes=- sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.c,.h diff --git a/tests/PointBakeTests.cpp b/tests/PointBakeTests.cpp index 6c12af21..a74c7e9c 100644 --- a/tests/PointBakeTests.cpp +++ b/tests/PointBakeTests.cpp @@ -25,7 +25,8 @@ TEST(PointBake,filector) TEST(PointBake,addMesh) { auto pb=ngl::NCCAPointBake("files/Tri.xml"); - auto mesh=ngl::Obj("models/Tri.obj",ngl::Obj::CalcBB::False); + auto mesh=ngl::Obj(); + EXPECT_TRUE(mesh.load("files/Triangle1.obj",ngl::Obj::CalcBB::False)); EXPECT_TRUE(pb.attachMesh(&mesh)); }