summaryrefslogtreecommitdiff
path: root/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h')
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h
deleted file mode 100644
index 062b6fc0c8e..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// $Id$
-#ifndef TESTAPPMAIN_H
-#define TESTAPPMAIN_H
-
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "tao/Exception.h"
-#include "tao/Environment.h"
-
-#define TEST_APP_MAIN(APP_TYPE) \
-int \
-main(int argc, char* argv[]) \
-{ \
- ACE_LOG_MSG->priority_mask(LM_TRACE | \
- LM_DEBUG | \
- LM_INFO | \
- LM_NOTICE | \
- LM_WARNING | \
- LM_ERROR | \
- LM_CRITICAL | \
- LM_ALERT | \
- LM_EMERGENCY, \
- ACE_Log_Msg::PROCESS); \
-\
- APP_TYPE app; \
-\
- ACE_TRY_NEW_ENV \
- { \
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER); \
- ACE_TRY_CHECK; \
- return ret; \
- } \
- ACE_CATCHANY \
- { \
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, \
- "Caught exception:"); \
- } \
- ACE_CATCHALL \
- { \
- ACE_ERROR((LM_ERROR, \
- "(%P|%t) Unknown (...) exception caught in main() " \
- "for App [%d].\n", app.name())); \
- } \
- ACE_ENDTRY; \
- \
- return 1; \
-}
-
-#endif