diff options
author | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-11-22 05:38:01 +0000 |
---|---|---|
committer | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-11-22 05:38:01 +0000 |
commit | f47cda57494606491c6e6299c664fcd094bdeb43 (patch) | |
tree | e19b8d3a410110ccd802ae0dee4093efae4119a8 /TAO/tests/Bug_1551_Regression | |
parent | db2dde96e918500f38e75a00bd35877fdeb4952a (diff) | |
download | ATCD-f47cda57494606491c6e6299c664fcd094bdeb43.tar.gz |
ChangeLogTag: Thu Nov 22 05:32:24 UTC 2007 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'TAO/tests/Bug_1551_Regression')
-rw-r--r-- | TAO/tests/Bug_1551_Regression/server.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/TAO/tests/Bug_1551_Regression/server.cpp b/TAO/tests/Bug_1551_Regression/server.cpp index b70aa044d03..e28f97a0e2f 100644 --- a/TAO/tests/Bug_1551_Regression/server.cpp +++ b/TAO/tests/Bug_1551_Regression/server.cpp @@ -4,6 +4,7 @@ #include "Server_Task.h" #include "tao/Utils/Servant_Var.h" #include "ace/Get_Opt.h" +#include "ace/High_Res_Timer.h" ACE_RCSID (Bug_1XXX_Regression, server, "$Id$") @@ -52,6 +53,14 @@ parse_args (int argc, char *argv[]) int ACE_TMAIN(int argc, ACE_TCHAR *argv[]) { + // Fetching the high res timer's global scale factor ensures that it + // is calibrated (if necessary on this platform) at the beginning of + // the test. While the timer would otherwise be calibrated on first + // use, this introduces delay in the middle of the test's execution. + // This leads to failures due to timing assumptions (timeouts, etc.) + // within the test itself. + (void) ACE_High_Res_Timer::global_scale_factor(); + try { CORBA::ORB_var orb = |