]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4026] Fixed the path define
authorFrancis Dupont <fdupont@isc.org>
Wed, 2 Sep 2015 10:54:32 +0000 (12:54 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 2 Sep 2015 10:54:32 +0000 (12:54 +0200)
src/lib/dhcpsrv/tests/Makefile.am
src/lib/dhcpsrv/tests/logging_unittest.cc

index a4c9f2217f35c7119797ea36629a1fdbb85ae7b7..baad1d2ed68ea870de5d432773664c730bbcc72d 100644 (file)
@@ -5,6 +5,7 @@ AM_CPPFLAGS += $(BOOST_INCLUDES)
 AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_top_builddir)/src/lib/dhcpsrv/tests\"
 AM_CPPFLAGS += -DDHCP_DATA_DIR=\"$(abs_top_builddir)/src/lib/dhcpsrv/tests\"
 AM_CPPFLAGS += -DKEA_LFC_BUILD_DIR=\"$(abs_top_builddir)/src/bin/lfc\"
+AM_CPPFLAGS += -DLOGGING_SPEC_FILE=\"$(abs_top_srcdir)/src/lib/dhcpsrv/logging.spec\"
 AM_CPPFLAGS += -DINSTALL_PROG=\"$(abs_top_srcdir)/install-sh\"
 
 AM_CXXFLAGS = $(KEA_CXXFLAGS)
index a04f1c02f6572c751003dc228b20b73b07e0058e..e7a9a423651db789ff0c7debb1aed7e8c09ed166 100644 (file)
@@ -48,7 +48,7 @@ class LoggingTest : public ::testing::Test {
 
 // Tests that the spec file is valid.
 TEST_F(LoggingTest, basicSpec) {
-    std::string specfile = std::string(TEST_DATA_BUILDDIR) + "/../logging.spec";
+    std::string specfile = std::string(LOGGING_SPEC_FILE);
     ASSERT_NO_THROW(isc::config::moduleSpecFromFile(specfile));
 }