diff options
-rw-r--r-- | TAO/ChangeLog | 7 | ||||
-rw-r--r-- | TAO/tests/AMI_Buffering/client.cpp | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 11a3a33f67c..43ba7913133 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,10 @@ +Tue Nov 9 08:27:30 2004 Chad Elliott <elliott_c@ociweb.com> + + * tests/AMI_Buffering/client.cpp: + + Increased the amount of time allowed to elapse before the flush + occurs due to differences in OS schedulers. + Tue Nov 9 07:22:46 2004 Chad Elliott <elliott_c@ociweb.com> * orbsvcs/tests/HTIOP/AMI/HTIOP_AMI.mpc: diff --git a/TAO/tests/AMI_Buffering/client.cpp b/TAO/tests/AMI_Buffering/client.cpp index 856abb57673..a17ba653fd5 100644 --- a/TAO/tests/AMI_Buffering/client.cpp +++ b/TAO/tests/AMI_Buffering/client.cpp @@ -738,7 +738,10 @@ run_timeout_reactive (CORBA::ORB_ptr orb, break; } - if (elapsed.msec () > 2 * TIMEOUT_MILLISECONDS) + // Slightly more than the timeout is allowed to pass due + // to scheduler differences. + static const unsigned int real_timeout = 3 * TIMEOUT_MILLISECONDS; + if (elapsed.msec () > real_timeout) { test_failed = 1; ACE_DEBUG ((LM_DEBUG, @@ -746,7 +749,7 @@ run_timeout_reactive (CORBA::ORB_ptr orb, "timeout threshold. " "Elapsed = %d, Timeout = %d msecs\n", i, - elapsed.msec (), TIMEOUT_MILLISECONDS)); + elapsed.msec (), real_timeout)); break; } } |