Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
2c786a20
Commit
2c786a20
authored
May 03, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1007 from tSed/sma/fork-fix
Build-system: disable test_fork when fork() is not available
parents
87a08e17
d178c71e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
CMakeLists.txt
CMakeLists.txt
+11
-9
configure.ac
configure.ac
+2
-0
Makefile.am
tests/Makefile.am
+6
-2
No files found.
CMakeLists.txt
View file @
2c786a20
...
...
@@ -713,15 +713,17 @@ if(ZMQ_BUILD_TESTS)
test_connect_rid
)
if
(
NOT WIN32
)
list
(
APPEND tests
test_monitor
test_pair_ipc
test_reqrep_ipc
test_fork
test_abstract_ipc
test_proxy
test_filter_ipc
)
list
(
APPEND tests
test_monitor
test_pair_ipc
test_reqrep_ipc
test_abstract_ipc
test_proxy
test_filter_ipc
)
if
(
HAVE_FORK
)
list
(
APPEND tests test_fork
)
endif
()
endif
()
foreach
(
test
${
tests
}
)
...
...
configure.ac
View file @
2c786a20
...
...
@@ -544,6 +544,8 @@ LIBZMQ_CHECK_TCP_KEEPALIVE([AC_DEFINE(
[Whether TCP_KEEPALIVE is supported.])
])
AM_CONDITIONAL(HAVE_FORK, test "x$ac_cv_func_fork" = "xyes")
# Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS
AC_SUBST(LIBZMQ_EXTRA_CFLAGS)
AC_SUBST(LIBZMQ_EXTRA_CXXFLAGS)
...
...
tests/Makefile.am
View file @
2c786a20
...
...
@@ -56,8 +56,10 @@ noinst_PROGRAMS += test_shutdown_stress \
test_pair_ipc
\
test_reqrep_ipc
\
test_timeo
\
test_fork
\
test_filter_ipc
test_filter_ipc
if
HAVE_FORK
noinst_PROGRAMS
+=
test_fork
endif
endif
if
BUILD_TIPC
...
...
@@ -123,7 +125,9 @@ test_shutdown_stress_SOURCES = test_shutdown_stress.cpp
test_pair_ipc_SOURCES
=
test_pair_ipc.cpp testutil.hpp
test_reqrep_ipc_SOURCES
=
test_reqrep_ipc.cpp testutil.hpp
test_timeo_SOURCES
=
test_timeo.cpp
if
HAVE_FORK
test_fork_SOURCES
=
test_fork.cpp
endif
test_filter_ipc_SOURCES
=
test_filter_ipc.cpp
endif
if
BUILD_TIPC
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment