0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

add test and documentation for "draft" capability

This commit is contained in:
Asmod4n 2017-01-19 20:50:18 +01:00
parent a6a56e299d
commit b7cd6e8a85
No known key found for this signature in database
GPG Key ID: 79DBD86D7A585E36
2 changed files with 10 additions and 4 deletions

View File

@ -27,6 +27,7 @@ defined:
* norm - the library supports the norm:// protocol
* curve - the library supports the CURVE security mechanism
* gssapi - the library supports the GSSAPI security mechanism
* draft - the library is build with the draft api
When this method is provided, the zmq.h header file will define
ZMQ_HAS_CAPABILITIES.

View File

@ -42,25 +42,25 @@ int main (void)
#else
assert (!zmq_has ("pgm"));
#endif
#if defined (ZMQ_HAVE_TIPC)
assert (zmq_has ("tipc"));
#else
assert (!zmq_has ("tipc"));
#endif
#if defined (ZMQ_HAVE_NORM)
assert (zmq_has ("norm"));
#else
assert (!zmq_has ("norm"));
#endif
#if defined (ZMQ_HAVE_CURVE)
assert (zmq_has ("curve"));
#else
assert (!zmq_has ("curve"));
#endif
#if defined (HAVE_LIBGSSAPI_KRB5)
assert (zmq_has ("gssapi"));
#else
@ -73,5 +73,10 @@ int main (void)
assert (!zmq_has("vmci"));
#endif
#if defined (ZMQ_BUILD_DRAFT_API)
assert (zmq_has("draft"));
#else
assert (!zmq_has("draft"));
#endif
return 0;
}