Skip to content

Commit

Permalink
Merge pull request #1081 from gazebosim/merge_9_main_20241004
Browse files Browse the repository at this point in the history
Merge 9 -> main
  • Loading branch information
iche033 authored Oct 11, 2024
2 parents 115a179 + 9f03a3a commit 589abd3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:

- name: Build Dependencies
run: |
pixi run colcon build --merge-install --cmake-args -G"Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF --event-handlers console_direct+ --packages-up-to ${env:PACKAGE}
pixi run colcon build --merge-install --cmake-args " -GVisual Studio 17 2022" " -A x64" " -DCMAKE_BUILD_TYPE=Release" " -DBUILD_TESTING=OFF" --event-handlers console_direct+ --packages-up-to ${env:PACKAGE}
- name: Build Package
run: pixi run colcon build --merge-install --cmake-args -G"Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DSKIP_ogre=ON --event-handlers console_direct+ --packages-select ${env:PACKAGE}
run: pixi run colcon build --merge-install --cmake-args " -GVisual Studio 17 2022" " -A x64" " -DCMAKE_BUILD_TYPE=Release" " -DBUILD_TESTING=ON" " -DSKIP_ogre=ON" --event-handlers console_direct+ --packages-select ${env:PACKAGE}

- name: Test
run: pixi run colcon test --merge-install --event-handlers console_direct+ --packages-select ${env:PACKAGE}
4 changes: 0 additions & 4 deletions src/RenderEngineManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -563,14 +563,10 @@ bool RenderEngineManagerPrivate::UnloadEnginePlugin(
std::string pluginName = it->second;
this->enginePlugins.erase(it);

#ifndef _WIN32
// Unloading the plugin on windows causes tests to crash on exit
// see issue #45
if (!this->pluginLoader.ForgetLibraryOfPlugin(pluginName))
{
gzerr << "Failed to unload plugin: " << pluginName << std::endl;
}
#endif

std::lock_guard<std::recursive_mutex> lock(this->enginesMutex);
auto engineIt = this->engines.find(_engineName);
Expand Down
5 changes: 5 additions & 0 deletions test/gz_rendering_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ macro(gz_configure_rendering_test)
APPEND PROPERTY
ENVIRONMENT "GZ_ENGINE_BACKEND=${gz_configure_rendering_test_RENDER_ENGINE_BACKEND}")

set_property(
TEST ${test_name}
APPEND PROPERTY
ENVIRONMENT "GZ_RENDERING_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}")

if(gz_configure_rendering_test_HEADLESS)
set_property(
TEST ${test_name}
Expand Down

0 comments on commit 589abd3

Please sign in to comment.