Commit 2a84d259 authored by dave b's avatar dave b

Enlarge the race window for some test cases

These changes cause an assertion in lb_sendpipe() when executing the test_security_plain testcase.
parent 5e0facda
...@@ -255,7 +255,9 @@ int test_inproc_bind_and_close_first (int send_hwm, int /* recv_hwm */) ...@@ -255,7 +255,9 @@ int test_inproc_bind_and_close_first (int send_hwm, int /* recv_hwm */)
int main (void) int main (void)
{ {
setup_test_environment(); setup_test_environment();
no_race_tests_please() ;
int count; int count;
// Default values are 1000 on send and 1000 one receive, so 2000 total // Default values are 1000 on send and 1000 one receive, so 2000 total
......
...@@ -222,6 +222,8 @@ int main (void) ...@@ -222,6 +222,8 @@ int main (void)
{ {
setup_test_environment (); setup_test_environment ();
no_race_tests_please() ;
void *ctx = zmq_ctx_new (); void *ctx = zmq_ctx_new ();
assert (ctx); assert (ctx);
// Control socket receives terminate command from main over inproc // Control socket receives terminate command from main over inproc
......
...@@ -263,6 +263,12 @@ void setup_test_environment() ...@@ -263,6 +263,12 @@ void setup_test_environment()
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR ); _CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
# endif # endif
#endif #endif
zmq_lb_race_window_2_size = 1 ;
}
void no_race_tests_please()
{
zmq_lb_race_window_2_size = 0 ;
} }
// Provide portable millisecond sleep // Provide portable millisecond sleep
......
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