7 #include "GaudiKernel/Bootstrap.h"
8 #include "GaudiKernel/IAppMgrUI.h"
17 theApp(
Gaudi::createApplicationMgrEx(
"GaudiCoreSvc",
23 EXPECT_TRUE(
theApp !=
nullptr );
24 EXPECT_TRUE(
propMgr.isValid() );
25 EXPECT_TRUE(
svcLoc.isValid() );
26 EXPECT_TRUE(
svcMgr.isValid() );
28 Gaudi::setInstance(
theApp );
29 EXPECT_TRUE(
propMgr->setProperty(
"JobOptionsType",
"NONE" ).isSuccess() );
30 EXPECT_TRUE(
propMgr->setProperty(
"OutputLevel",
37 std::streambuf* coutbuf= std::cout.rdbuf();
38 std::ofstream
out(
"/dev/null" );
39 std::cout.rdbuf(
out.rdbuf() );
40 lconfig=
theApp->configure().isSuccess();
41 std::cout.rdbuf( coutbuf );
45 lconfig=
theApp->configure().isSuccess();
47 EXPECT_TRUE( lconfig ) <<
"InitGaudiGoogleTest: theApp->configure() failure";
48 EXPECT_TRUE(
theApp->initialize().isSuccess() );
55 EXPECT_TRUE(
theApp->finalize().isSuccess() );
56 EXPECT_TRUE(
theApp->terminate().isSuccess() );