diff --git a/src/plugins/minimal_scene/MinimalScene.cc b/src/plugins/minimal_scene/MinimalScene.cc index 443390844..b80c7af98 100644 --- a/src/plugins/minimal_scene/MinimalScene.cc +++ b/src/plugins/minimal_scene/MinimalScene.cc @@ -691,6 +691,7 @@ void GzRenderer::Destroy() // clean up in the rendering thread this->dataPtr->camera.reset(); this->dataPtr->rayQuery.reset(); + std::cerr << "================ GzRenderer Destroy " << std::endl; } ///////////////////////////////////////////////// diff --git a/test/integration/minimal_scene.cc b/test/integration/minimal_scene.cc index 3e6e2455a..a0a835d91 100644 --- a/test/integration/minimal_scene.cc +++ b/test/integration/minimal_scene.cc @@ -115,7 +115,7 @@ TEST(MinimalSceneTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Config)) std::cerr << " =================== after get render engine " << std::endl; ASSERT_NE(nullptr, engine); - EXPECT_EQ(1u, engine->SceneCount()); +/* EXPECT_EQ(1u, engine->SceneCount()); auto scene = engine->SceneByName("banana"); ASSERT_NE(nullptr, scene); @@ -139,7 +139,7 @@ TEST(MinimalSceneTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Config)) EXPECT_EQ(rendering::CameraProjectionType::CPT_ORTHOGRAPHIC, camera->ProjectionType()); - +*/ // Cleanup auto plugins = win->findChildren(); EXPECT_EQ(2, plugins.size()); @@ -148,11 +148,12 @@ TEST(MinimalSceneTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Config)) EXPECT_TRUE(app.RemovePlugin(pluginName)); plugins.clear(); + win->QuickWindow()->close(); - camera.reset(); - std::cerr << " =================== before destroying scene" << std::endl; - engine->DestroyScene(scene); +// camera.reset(); +// std::cerr << " =================== before destroying scene" << std::endl; +// engine->DestroyScene(scene); std::cerr << " =================== before unloading engine " << std::endl; EXPECT_TRUE(rendering::unloadEngine(engine->Name()));