summaryrefslogtreecommitdiffstats
path: root/src/lib/testutils
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2022-07-27 17:17:42 +0200
committerFrancis Dupont <fdupont@isc.org>2022-07-27 17:17:42 +0200
commitc331d7d478a0574c740b0b43f9072687a0627e25 (patch)
treedfc2f5b638ec4d23ba44161338e0abff868ae571 /src/lib/testutils
parent[#2513] add ChangeLog entry (diff)
downloadkea-c331d7d478a0574c740b0b43f9072687a0627e25.tar.xz
kea-c331d7d478a0574c740b0b43f9072687a0627e25.zip
[#2235] Fixed minor and not visible bug
Diffstat (limited to 'src/lib/testutils')
-rw-r--r--src/lib/testutils/lib_load_test_fixture.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/testutils/lib_load_test_fixture.cc b/src/lib/testutils/lib_load_test_fixture.cc
index 0a0d5e0df5..2fe32beb34 100644
--- a/src/lib/testutils/lib_load_test_fixture.cc
+++ b/src/lib/testutils/lib_load_test_fixture.cc
@@ -25,6 +25,8 @@ LibLoadTest::validDaemonTest(const std::string& daemon_name, uint16_t family,
CfgMgr::instance().setFamily(family);
process::Daemon::setProcName(daemon_name);
+ clearLibraries();
+
// Adding the library to the list of libraries should work.
ASSERT_NO_THROW_LOG(addLibrary(lib_so_name_, params));
@@ -43,6 +45,8 @@ LibLoadTest::invalidDaemonTest(const std::string& daemon_name, uint16_t family,
CfgMgr::instance().setFamily(family);
process::Daemon::setProcName(daemon_name);
+ clearLibraries();
+
// Adding the library to the list of libraries should work.
ASSERT_NO_THROW_LOG(addLibrary(lib_so_name_, params));