#include <catch2/catch_all.hpp>
#include <zmq.hpp>
Go to the source code of this file.
◆ CHECK_THROWS_ZMQ_ERROR
#define CHECK_THROWS_ZMQ_ERROR |
( |
|
ecode, |
|
|
|
expr |
|
) |
| |
Value: do { \
try { \
expr; \
CHECK(false); \
} \
CHECK(ze.
num() == ecode); \
} \
catch (const std::exception &ex) { \
INFO(
std::string(
"Unexpected exception: ") + ex.what()); \
CHECK(false); \
} \
catch (...) { \
CHECK(false); \
} \
} while (false)
Definition at line 37 of file cppzmq/tests/testutil.hpp.