mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Enlarge the race window for some test cases
These changes cause an assertion in lb_sendpipe() when executing the test_security_plain testcase.
This commit is contained in:
parent
5e0facda17
commit
2a84d25974
@ -255,7 +255,9 @@ int test_inproc_bind_and_close_first (int send_hwm, int /* recv_hwm */)
|
||||
int main (void)
|
||||
{
|
||||
setup_test_environment();
|
||||
|
||||
|
||||
no_race_tests_please() ;
|
||||
|
||||
int count;
|
||||
|
||||
// Default values are 1000 on send and 1000 one receive, so 2000 total
|
||||
|
@ -222,6 +222,8 @@ int main (void)
|
||||
{
|
||||
setup_test_environment ();
|
||||
|
||||
no_race_tests_please() ;
|
||||
|
||||
void *ctx = zmq_ctx_new ();
|
||||
assert (ctx);
|
||||
// Control socket receives terminate command from main over inproc
|
||||
|
@ -263,6 +263,12 @@ void setup_test_environment()
|
||||
_CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR );
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user