BIND 10 master, updated. 6030d51fe670fb00e6831263be61a7cc4fe97f1b [master] (ab)use the top_builddir to create a temporary UNIX domain file as a (quick hack) workaround for distcheck failure on a buildbot (running at a deeper directory). okayed on jabber.

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Dec 21 23:39:46 UTC 2011


The branch, master has been updated
       via  6030d51fe670fb00e6831263be61a7cc4fe97f1b (commit)
      from  0b0d1a0d3a54a75941fe245a781df36e34194911 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6030d51fe670fb00e6831263be61a7cc4fe97f1b
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Wed Dec 21 15:38:41 2011 -0800

    [master] (ab)use the top_builddir to create a temporary UNIX domain file
    as a (quick hack) workaround for distcheck failure on a buildbot (running
    at a deeper directory).
    okayed on jabber.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/util/tests/Makefile.am               |    4 ++++
 src/lib/util/tests/socketsession_unittest.cc |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/tests/Makefile.am b/src/lib/util/tests/Makefile.am
index 98d90d0..dc144bd 100644
--- a/src/lib/util/tests/Makefile.am
+++ b/src/lib/util/tests/Makefile.am
@@ -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
diff --git a/src/lib/util/tests/socketsession_unittest.cc b/src/lib/util/tests/socketsession_unittest.cc
index eade68a..d736014 100644
--- a/src/lib/util/tests/socketsession_unittest.cc
+++ b/src/lib/util/tests/socketsession_unittest.cc
@@ -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";
 




More information about the bind10-changes mailing list