From: Andrei Pavel Date: Fri, 4 Apr 2025 10:40:23 +0000 (+0300) Subject: [#3732] Fix ConfigReportTest.getConfigReport X-Git-Tag: Kea-2.7.8~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e22a02076a737e7d5a11dafcb78de817761dc84a;p=thirdparty%2Fkea.git [#3732] Fix ConfigReportTest.getConfigReport --- diff --git a/src/lib/process/cfgrpt/tests/config_report_unittests.cc b/src/lib/process/cfgrpt/tests/config_report_unittests.cc index cc756ce6f0..6cfc8ae868 100644 --- a/src/lib/process/cfgrpt/tests/config_report_unittests.cc +++ b/src/lib/process/cfgrpt/tests/config_report_unittests.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2025 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -18,7 +18,6 @@ using namespace std; // This test verifies that the getConfigReport() function // returns the actual config report. TEST(ConfigReportTest, getConfigReport) { - // Fetch the report string std::string cfgReport = isc::detail::getConfigReport(); @@ -27,6 +26,6 @@ TEST(ConfigReportTest, getConfigReport) { ASSERT_FALSE(cfgReport.empty()); EXPECT_NE(std::string::npos, cfgReport.find(VERSION)); EXPECT_NE(std::string::npos, cfgReport.find(EXTENDED_VERSION)); - EXPECT_NE(std::string::npos, cfgReport.find(std::string("Hooks directory: ") + + EXPECT_NE(std::string::npos, cfgReport.find(std::string("Hooks directory: ") + HooksLibrariesParser::default_hooks_path_)); }