zeromq / azmq

C++ language binding library integrating ZeroMQ with Boost Asio
Boost Software License 1.0
319 stars 109 forks source link

azmq make test failing #169

Closed kinos9 closed 3 years ago

kinos9 commented 3 years ago

I just build libzmq 4.3.4 and now I'm building azmq but test 4/6 fails:

This is my command line to build the azmq library:

# mkdir -pv build && cd build
# cmake -DCMAKE_INSTALL_PREFIX=/opt/azmq -DBOOST_ROOT=/opt/boost -DZMQ_ROOT=/opt/libzmq -DCMAKE_BUILD_TYPE=Release ..
# cmake --build . --config Release
# ctest . -C Release

and this is my log form ctest command:

Test project /home/niccolo/PRGM/0mq/azmq/build
    Start 1: test_message
1/6 Test #1: test_message .....................   Passed    0.00 sec
    Start 2: test_context_ops
2/6 Test #2: test_context_ops .................   Passed    0.00 sec
    Start 3: test_socket_ops
3/6 Test #3: test_socket_ops ..................   Passed    0.61 sec
    Start 4: test_socket
4/6 Test #4: test_socket ......................***Failed    2.20 sec
    Start 5: test_signal
5/6 Test #5: test_signal ......................   Passed    0.00 sec
    Start 6: test_actor
6/6 Test #6: test_actor .......................   Passed    0.00 sec

83% tests passed, 1 tests failed out of 6

Total Test time (real) =   2.82 sec

The following tests FAILED:
      4 - test_socket (Failed)
Errors while running CTest

Why that test fails?

aboseley commented 3 years ago

This test fails for me also

aboseley commented 3 years ago

It looks like this is caused by a change in libzmq v4.3.0 https://github.com/zeromq/libzmq/releases/tag/v4.3.0

This event is no longer draft ZMQ_EVENT_HANDSHAKE_SUCCEEDED

So the unit test sees an unexpected event