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
261dd1f9
Commit
261dd1f9
authored
Aug 20, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test_ancillarries not yet using unity
Solution: migrate to unity
parent
3d2db5d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
+27
-5
Makefile.am
Makefile.am
+2
-1
test_ancillaries.cpp
tests/test_ancillaries.cpp
+25
-4
No files found.
Makefile.am
View file @
261dd1f9
...
...
@@ -455,7 +455,8 @@ external_unity_libunity_a_SOURCES = external/unity/unity.c \
external/unity/unity_internals.h
tests_test_ancillaries_SOURCES
=
tests/test_ancillaries.cpp
tests_test_ancillaries_LDADD
=
src/libzmq.la
tests_test_ancillaries_LDADD
=
src/libzmq.la
${
UNITY_LIBS
}
tests_test_ancillaries_CPPFLAGS
=
${
UNITY_CPPFLAGS
}
tests_test_system_SOURCES
=
tests/test_system.cpp
tests_test_system_LDADD
=
src/libzmq.la
...
...
tests/test_ancillaries.cpp
View file @
261dd1f9
...
...
@@ -35,16 +35,37 @@
*/
#include "testutil.hpp"
#include "testutil_unity.hpp"
int
main
(
void
)
void
setUp
()
{
}
void
tearDown
()
{
}
void
test_version
()
{
int
major
,
minor
,
patch
;
zmq_version
(
&
major
,
&
minor
,
&
patch
);
assert
(
major
==
ZMQ_VERSION_MAJOR
&&
minor
==
ZMQ_VERSION_MINOR
&&
patch
==
ZMQ_VERSION_PATCH
);
TEST_ASSERT_EQUAL_INT
(
ZMQ_VERSION_MAJOR
,
major
);
TEST_ASSERT_EQUAL_INT
(
ZMQ_VERSION_MINOR
,
minor
);
TEST_ASSERT_EQUAL_INT
(
ZMQ_VERSION_PATCH
,
patch
);
}
void
test_strerrror
()
{
assert
(
zmq_strerror
(
EINVAL
));
}
int
main
()
{
setup_test_environment
();
return
0
;
UNITY_BEGIN
();
RUN_TEST
(
test_version
);
RUN_TEST
(
test_strerrror
);
return
UNITY_END
();
}
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