mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-19 18:03:50 +00:00
Revert "Enlarge the race window for some test cases"
This reverts commit 2a84d2597469d272794a1fb5fb43c6260f335195. Broke regression test on test_hwm.cpp.
This commit is contained in:
parent
0bc669b106
commit
d190325e4d
@ -256,8 +256,6 @@ 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,8 +222,6 @@ 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,12 +263,6 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user