Skip to content

Commit

Permalink
more testing with no unload
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Aug 17, 2023
1 parent 4fc923f commit fd2a22b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/integration/minimal_scene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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<Plugin *>();
EXPECT_EQ(2, plugins.size());
Expand All @@ -151,9 +151,8 @@ TEST(MinimalSceneTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Config))

win->QuickWindow()->close();

// camera.reset();
// std::cerr << " =================== before destroying scene" << std::endl;
// engine->DestroyScene(scene);
std::cerr << " =================== before destroying scene" << std::endl;
engine->DestroyScene(scene);

std::cerr << " =================== before unloading engine " << std::endl;
// EXPECT_TRUE(rendering::unloadEngine(engine->Name()));
Expand Down

0 comments on commit fd2a22b

Please sign in to comment.