From 5267ac4589f827be03b7d7f5f1a5189cac79750b Mon Sep 17 00:00:00 2001 From: jmacey Date: Tue, 26 Sep 2023 18:50:30 +0100 Subject: [PATCH] forgot to set the ngl::Obj::CalcBB::False flag on mesh in PointBake unit tests so fails on CI as no GPU --- tests/ObjTests.cpp | 5 ----- tests/PointBakeTests.cpp | 2 +- tests/main.cpp | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/ObjTests.cpp b/tests/ObjTests.cpp index b9700c95..f50fb5f3 100644 --- a/tests/ObjTests.cpp +++ b/tests/ObjTests.cpp @@ -39,11 +39,6 @@ TEST(Obj,openForReading) } } -//TEST(Obj,loadBig) -//{ -// Obj a; -// EXPECT_TRUE(a.load("files/sponza.obj")); -//} TEST(Obj,defaultCtor) { diff --git a/tests/PointBakeTests.cpp b/tests/PointBakeTests.cpp index 8d06aa51..6c12af21 100644 --- a/tests/PointBakeTests.cpp +++ b/tests/PointBakeTests.cpp @@ -25,7 +25,7 @@ TEST(PointBake,filector) TEST(PointBake,addMesh) { auto pb=ngl::NCCAPointBake("files/Tri.xml"); - auto mesh=ngl::Obj("models/Tri.obj"); + auto mesh=ngl::Obj("models/Tri.obj",ngl::Obj::CalcBB::False); EXPECT_TRUE(pb.attachMesh(&mesh)); } diff --git a/tests/main.cpp b/tests/main.cpp index 435f8e8c..b5085bdc 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -87,7 +87,7 @@ int main(int argc, char **argv) if(useOpenGL == false) { std::cerr << "excluding tests\n"; - ::testing::GTEST_FLAG(filter) = "-ShaderLib.*:VAOPrimitives.*:NGLInit*: NGLMessage*"; + ::testing::GTEST_FLAG(filter) = "-ShaderLib.*:VAOPrimitives.*:NGLInit*:NGLMessage*"; } // testing::internal::CaptureStdout(); testing::internal::CaptureStderr();