From: Francis Dupont Date: Wed, 8 Jul 2015 20:25:24 +0000 (+0200) Subject: [3752] Simplified logging.spec check X-Git-Tag: trac3911a_base~2^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f32f38595e5f161a446881e97cf97c155b738339;p=thirdparty%2Fkea.git [3752] Simplified logging.spec check --- diff --git a/src/lib/dhcpsrv/tests/logging_unittest.cc b/src/lib/dhcpsrv/tests/logging_unittest.cc index de32169207..e51209aa34 100644 --- a/src/lib/dhcpsrv/tests/logging_unittest.cc +++ b/src/lib/dhcpsrv/tests/logging_unittest.cc @@ -46,14 +46,10 @@ class LoggingTest : public ::testing::Test { } }; -// Helper to get the spec file -std::string specfile(const std::string& name) { - return (std::string(TEST_DATA_BUILDDIR) + "/../" + name); -} - // Tests that the spec file is valid. TEST_F(LoggingTest, basicSpec) { - ASSERT_NO_THROW(isc::config::moduleSpecFromFile(specfile("logging.spec"))); + std::string specfile = std::string(TEST_DATA_BUILDDIR) + "/../logging.spec"; + ASSERT_NO_THROW(isc::config::moduleSpecFromFile(specfile)); } // Checks that contructor is able to process specified storage properly