Skip to content

Commit acc0529

Browse files
authored
Attempt at fixing the crashes with testFactory (QC-395) (#469)
1 parent 00a53de commit acc0529

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Modules/Example/test/testFactory.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ BOOST_AUTO_TEST_CASE(Task_Factory_failures)
5050
config.className = "o2::quality_control_modules::example::ExampleTask";
5151
BOOST_CHECK_EXCEPTION(factory.create(config, manager), AliceO2::Common::FatalException, is_critical);
5252

53-
std::string addition = "lib:../../lib:../../../lib:";
54-
gSystem->Setenv("LD_LIBRARY_PATH", (addition + gSystem->Getenv("LD_LIBRARY_PATH")).c_str());
53+
gSystem->AddDynamicPath("lib:../../lib:../../../lib:"); // add local paths for the test
5554
config.taskName = "task";
5655
config.moduleName = "QcCommon";
5756
config.className = "WRONGCLASS";

0 commit comments

Comments
 (0)