Problem: no tests for socket_t ctor accepting enum socket_type

Solution: added test case
This commit is contained in:
Simon Giesecke 2018-04-03 12:04:23 +02:00
parent 1616c0fad2
commit 83f854869a
2 changed files with 18 additions and 1 deletions

View File

@ -31,6 +31,15 @@ matrix:
# - llvm-toolchain-trusty-5.0
# packages:
# - clang-5.0
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" BUILD_TYPE=cmake ZMQ_VERSION=4.2.5
sudo: required
@ -38,7 +47,8 @@ before_install:
- pip install --user cpp-coveralls
# Build and check this project according to the BUILD_TYPE
script:
script:
- eval "${MATRIX_EVAL}"
- ./ci_build.sh
after_success:

View File

@ -7,3 +7,10 @@ TEST(socket, create_destroy)
zmq::socket_t socket(context, ZMQ_ROUTER);
}
#ifdef ZMQ_CPP11
TEST(socket, create_by_enum_destroy)
{
zmq::context_t context;
zmq::socket_t socket(context, zmq::socket_type::router);
}
#endif