22 cout <<
"*** SimplePOSIXTimeKeeperSvc_test starts ***" <<endl;
23 ISvcLocator* pSvcLoc(0);
24 if (!initGaudi(
"SimplePOSIXTimeKeeperSvc_test.txt", pSvcLoc)) {
25 cerr <<
"This test can not be run" << endl;
31 const bool CREATEIF(
true);
33 assert( (pSvcLoc->service(
"SimplePOSIXTimeKeeperSvc", pITK, CREATEIF)).isSuccess() );
37 SimplePOSIXTimeKeeperSvc& tk(
dynamic_cast<SimplePOSIXTimeKeeperSvc&
>(*pITK));
38 assert(tk.timeX() + tk.timeL() == tk.allocTime());
40 while (pITK->nextIter()) {
41 for (
int i=0; i<20000000; ++i) atan(i);
44 assert(tk.timeX() + tk.timeL() == tk.allocTime());
49 cout <<
"*** SimplePOSIXTimeKeeperSvc_test OK ***" <<endl;