Commit a95c4ab4 authored by Simon Giesecke's avatar Simon Giesecke

Problem: test_decrease_when_full is disabled for Windows

Solution: add sleep after connecting such that sending is not started before connection succeeded
parent 828ed69d
......@@ -152,6 +152,10 @@ void test_decrease_when_full ()
zmq_bind (bind_socket, "inproc://a");
zmq_connect (connect_socket, "inproc://a");
// we must wait for the connect to succeed here, unfortunately we don't
// have monitoring events for inproc, so we just hope SETTLE_TIME suffices
msleep (SETTLE_TIME);
// Fill up to hwm
int send_count = test_fill_up_to_hwm (bind_socket, sndhwm);
......@@ -200,12 +204,7 @@ int main ()
UNITY_BEGIN ();
RUN_TEST (test_change_before_connected);
RUN_TEST (test_change_after_connected);
// TODO FIXME this test cases does not run reliably under Windows (at
// least for some VC++ and OS versions), this must be analyzed and fixed
#if !defined(_WIN32)
RUN_TEST (test_decrease_when_full);
#endif
return UNITY_END ();
}
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