Permalink
Browse files

Made test case for issue #346

  • Loading branch information...
1 parent 5c496ff commit 2a85ee4f5f585d7865ac9764f0e059452835fcc2 @hintjens hintjens committed Mar 22, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 346/issue.c
View
@@ -0,0 +1,20 @@
+#include <zmq.h>
+#include <assert.h>
+
+int main (int argc, char * argv[])
+{
+ void *ctx, *s1;
+ int rc;
+
+ ctx = zmq_init (1);
+ s1 = zmq_socket (ctx, ZMQ_REP);
+ rc = zmq_bind (s1, "tcp://*:5557");
+ zmq_close (s1);
+
+ rc = zmq_recv (s1, "hello", 5, 0);
+ assert (rc == -1);
+
+ zmq_term(ctx);
+ return 0;
+}
+

0 comments on commit 2a85ee4

Please sign in to comment.