summaryrefslogtreecommitdiff
path: root/tests/automake.mk
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-11-09 15:58:36 -0800
committerBen Pfaff <blp@nicira.com>2010-11-10 10:56:01 -0800
commit6e170b4c7802f4f388ec63d4c1146de830d98669 (patch)
tree9156b13a42a07e4f872fb5bde1764556e5645648 /tests/automake.mk
parente61c056cb94aeffc86cb314ea32726be9b666724 (diff)
downloadopenvswitch-6e170b4c7802f4f388ec63d4c1146de830d98669.tar.gz
socket-util: Work around Unix domain socket path name limits on Linux.
Many Open vSwitch tests fail on Debian's automatic build machines because the builds occur in deeply nested directories with long names. OVS tries to bind and connect to Unix domain sockets using absolute path names, which in combination with long directory names means that the socket's name exceeds the limit for Unix domain socket names (108 bytes on Linux). This commit works around the problem on Linux by indirecting through /proc/self/fd/<dirfd>/<basename> when names exceed the maximum that can be used directly. Reported-by: Hector Oron <hector.oron@gmail.com> Reported-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Reported-by: Roger Leigh <rleigh@codelibre.net> Debian bug #602891. Debian bug #602911.
Diffstat (limited to 'tests/automake.mk')
-rw-r--r--tests/automake.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/automake.mk b/tests/automake.mk
index 9e1bd9c21..0bac35164 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -78,6 +78,7 @@ lcov_wrappers = \
tests/lcov/test-sha1 \
tests/lcov/test-timeval \
tests/lcov/test-type-props \
+ tests/lcov/test-unix-socket \
tests/lcov/test-uuid \
tests/lcov/test-vconn
@@ -127,6 +128,7 @@ valgrind_wrappers = \
tests/valgrind/test-sha1 \
tests/valgrind/test-timeval \
tests/valgrind/test-type-props \
+ tests/valgrind/test-unix-socket \
tests/valgrind/test-uuid \
tests/valgrind/test-vconn
@@ -214,6 +216,10 @@ noinst_PROGRAMS += tests/test-lockfile
tests_test_lockfile_SOURCES = tests/test-lockfile.c
tests_test_lockfile_LDADD = lib/libopenvswitch.a
+noinst_PROGRAMS += tests/test-unix-socket
+tests_test_unix_socket_SOURCES = tests/test-unix-socket.c
+tests_test_unix_socket_LDADD = lib/libopenvswitch.a
+
noinst_PROGRAMS += tests/test-ovsdb
tests_test_ovsdb_SOURCES = \
tests/test-ovsdb.c \