]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3752] Simplified logging.spec check
authorFrancis Dupont <fdupont@isc.org>
Wed, 8 Jul 2015 20:25:24 +0000 (22:25 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 8 Jul 2015 20:25:24 +0000 (22:25 +0200)
src/lib/dhcpsrv/tests/logging_unittest.cc

index de321692074075849ddc49adaa52daa5bd47fe26..e51209aa34cb9379b61bbbfe62229d7ddd4a2bb0 100644 (file)
@@ -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