MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / ACE_TMAIN

Function ACE_TMAIN

tests/DCPS/MultiRepoTest/system.cpp:16–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "dds/DCPS/debug.h"
15
16int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
17{
18 OpenDDS::DCPS::set_DCPS_debug_level( 0);
19 int status = 0;
20 try {
21 TestSystem system( argc, argv, 0);
22 system.run();
23
24 } catch (const CORBA::Exception& ex) {
25 ex._tao_print_exception ("(%P|%t) %T ABORT: CORBA problem detected.\n");
26 status = -1;
27
28 } catch (const std::exception& ex) {
29 ACE_ERROR ((LM_ERROR,
30 ACE_TEXT("(%P|%t) %T ABORT: %C exception caught in main().\n"), ex.what()));
31 status = -2;
32
33 } catch(...) {
34 ACE_ERROR ((LM_ERROR,
35 ACE_TEXT("(%P|%t) %T ABORT: Unspecified exception caught in main() - panic.\n")));
36 status = -3;
37
38 }
39
40 return status;
41}

Callers

nothing calls this directly

Calls 4

set_DCPS_debug_levelFunction · 0.85
_tao_print_exceptionMethod · 0.80
runMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected