]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] (ab)use the top_builddir to create a temporary UNIX domain file
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 21 Dec 2011 23:38:41 +0000 (15:38 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 21 Dec 2011 23:38:41 +0000 (15:38 -0800)
as a (quick hack) workaround for distcheck failure on a buildbot (running
at a deeper directory).
okayed on jabber.

src/lib/util/tests/Makefile.am
src/lib/util/tests/socketsession_unittest.cc

index 98d90d013a9f67ff2687a8156120e5e2373dc8cd..dc144bdccd778512ea4810497916c8f9ebacf232 100644 (file)
@@ -3,6 +3,10 @@ SUBDIRS = .
 AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
 AM_CPPFLAGS += $(BOOST_INCLUDES)
 AM_CPPFLAGS += -DTEST_DATA_BUILDDIR=\"$(abs_builddir)\"
+# XXX: we'll pollute the top builddir for creating a temporary test file
+# used to bind a UNIX domain socket so we can minimize the risk of exceeding
+# the limit of file name path size.
+AM_CPPFLAGS += -DTEST_DATA_TOPBUILDDIR=\"$(abs_top_builddir)\"
 AM_CXXFLAGS = $(B10_CXXFLAGS)
 
 if USE_STATIC_LINK
index eade68a7338dc9f7a61250a89d1f9d29ef7d1ce2..d736014362d96624ddef174453b735f24154ccac 100644 (file)
@@ -50,7 +50,7 @@ using namespace isc::util::io::internal;
 
 namespace {
 
-const char* const TEST_UNIX_FILE = TEST_DATA_BUILDDIR "/test.unix";
+const char* const TEST_UNIX_FILE = TEST_DATA_TOPBUILDDIR "/test.unix";
 const char* const TEST_PORT = "53535";
 const char TEST_DATA[] = "BIND10 test";