From ff1c82b41e548dfdc8076374f9500db2df2c35a1 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Thu, 1 Sep 2022 11:20:42 -0500 Subject: [PATCH] Use RTLD_NODELETE=true when loading libraries (#1649) Signed-off-by: Addisu Z. Taddese Signed-off-by: Louise Poubel Signed-off-by: Addisu Z. Taddese Signed-off-by: Louise Poubel Co-authored-by: Louise Poubel --- src/SystemLoader.cc | 2 +- src/gui/Gui_clean_exit_TEST.cc | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/SystemLoader.cc b/src/SystemLoader.cc index fca2648512..7ea7b14d75 100644 --- a/src/SystemLoader.cc +++ b/src/SystemLoader.cc @@ -98,7 +98,7 @@ class gz::sim::SystemLoaderPrivate } } - auto pluginNames = this->loader.LoadLib(pathToLib); + auto pluginNames = this->loader.LoadLib(pathToLib, true); if (pluginNames.empty()) { gzerr << "Failed to load system plugin [" << filename << diff --git a/src/gui/Gui_clean_exit_TEST.cc b/src/gui/Gui_clean_exit_TEST.cc index 2392e6f2f9..8e86a0ce44 100644 --- a/src/gui/Gui_clean_exit_TEST.cc +++ b/src/gui/Gui_clean_exit_TEST.cc @@ -77,9 +77,7 @@ void startBoth(const std::string &_fileName) } ///////////////////////////////////////////////// -/// TODO (azeey) Temporarliy disabled until -/// https://github.com/gazebosim/gz-sim/issues/1443 is resolved -TEST_P(GazeboDeathTest, DISABLED_CleanExit) +TEST_P(GazeboDeathTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(CleanExit)) { std::string githubAction; // This test hangs when there is high CPU usage, so we skip it on Github