mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-03-01 10:57:59 +01:00
Problem: no tests for socket_t ctor accepting enum socket_type
Solution: added test case
This commit is contained in:
parent
1616c0fad2
commit
83f854869a
12
.travis.yml
12
.travis.yml
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user