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
10dae6e8
Commit
10dae6e8
authored
Mar 15, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test_poller not using unity
Solution: migrate to unity, and split test cases
parent
991b2336
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
Makefile.am
Makefile.am
+2
-1
test_poller.cpp
tests/test_poller.cpp
+0
-0
testutil_unity.hpp
tests/testutil_unity.hpp
+7
-0
No files found.
Makefile.am
View file @
10dae6e8
...
...
@@ -858,7 +858,8 @@ test_apps += tests/test_poller \
tests/test_dgram
tests_test_poller_SOURCES
=
tests/test_poller.cpp
tests_test_poller_LDADD
=
src/libzmq.la
tests_test_poller_LDADD
=
src/libzmq.la
${
UNITY_LIBS
}
tests_test_poller_CPPFLAGS
=
${
UNITY_CPPFLAGS
}
tests_test_client_server_SOURCES
=
tests/test_client_server.cpp
tests_test_client_server_LDADD
=
src/libzmq.la
${
UNITY_LIBS
}
...
...
tests/test_poller.cpp
View file @
10dae6e8
This diff is collapsed.
Click to expand it.
tests/testutil_unity.hpp
View file @
10dae6e8
...
...
@@ -63,6 +63,13 @@ int test_assert_success_message_errno_helper (int rc,
#define TEST_ASSERT_SUCCESS_ERRNO(expr) \
test_assert_success_message_errno_helper (expr, NULL, #expr)
#define TEST_ASSERT_FAILURE_ERRNO(error_code, expr) \
{ \
int rc = (expr); \
TEST_ASSERT_EQUAL_INT (-1, rc); \
TEST_ASSERT_EQUAL_INT (error_code, errno); \
}
void
send_string_expect_success
(
void
*
socket
,
const
char
*
str
,
int
flags
)
{
const
size_t
len
=
str
?
strlen
(
str
)
:
0
;
...
...
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