Unverified Commit b7cd6e8a authored by Asmod4n's avatar Asmod4n

add test and documentation for "draft" capability

parent a6a56e29
...@@ -27,6 +27,7 @@ defined: ...@@ -27,6 +27,7 @@ defined:
* norm - the library supports the norm:// protocol * norm - the library supports the norm:// protocol
* curve - the library supports the CURVE security mechanism * curve - the library supports the CURVE security mechanism
* gssapi - the library supports the GSSAPI 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 When this method is provided, the zmq.h header file will define
ZMQ_HAS_CAPABILITIES. ZMQ_HAS_CAPABILITIES.
......
...@@ -42,25 +42,25 @@ int main (void) ...@@ -42,25 +42,25 @@ int main (void)
#else #else
assert (!zmq_has ("pgm")); assert (!zmq_has ("pgm"));
#endif #endif
#if defined (ZMQ_HAVE_TIPC) #if defined (ZMQ_HAVE_TIPC)
assert (zmq_has ("tipc")); assert (zmq_has ("tipc"));
#else #else
assert (!zmq_has ("tipc")); assert (!zmq_has ("tipc"));
#endif #endif
#if defined (ZMQ_HAVE_NORM) #if defined (ZMQ_HAVE_NORM)
assert (zmq_has ("norm")); assert (zmq_has ("norm"));
#else #else
assert (!zmq_has ("norm")); assert (!zmq_has ("norm"));
#endif #endif
#if defined (ZMQ_HAVE_CURVE) #if defined (ZMQ_HAVE_CURVE)
assert (zmq_has ("curve")); assert (zmq_has ("curve"));
#else #else
assert (!zmq_has ("curve")); assert (!zmq_has ("curve"));
#endif #endif
#if defined (HAVE_LIBGSSAPI_KRB5) #if defined (HAVE_LIBGSSAPI_KRB5)
assert (zmq_has ("gssapi")); assert (zmq_has ("gssapi"));
#else #else
...@@ -73,5 +73,10 @@ int main (void) ...@@ -73,5 +73,10 @@ int main (void)
assert (!zmq_has("vmci")); assert (!zmq_has("vmci"));
#endif #endif
#if defined (ZMQ_BUILD_DRAFT_API)
assert (zmq_has("draft"));
#else
assert (!zmq_has("draft"));
#endif
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment