Browse Source

[3752] Simplified logging.spec check

Francis Dupont 9 years ago
parent
commit
f32f38595e
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/lib/dhcpsrv/tests/logging_unittest.cc

+ 2 - 6
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