summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/tests/Policies/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/dds4ccm/tests/Policies/main.cpp')
-rw-r--r--CIAO/connectors/dds4ccm/tests/Policies/main.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/CIAO/connectors/dds4ccm/tests/Policies/main.cpp b/CIAO/connectors/dds4ccm/tests/Policies/main.cpp
deleted file mode 100644
index 985081f29ae..00000000000
--- a/CIAO/connectors/dds4ccm/tests/Policies/main.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-// $Id$
-
-#include "ace/OS_main.h"
-#include "ace/Log_Msg.h"
-
-#include "pub_qos_test.h"
-#include "sub_qos_test.h"
-#include "dw_qos_test.h"
-#include "dr_qos_test.h"
-#include "tp_qos_test.h"
-#include "dp_qos_test.h"
-
-int handle_result (const int & result,
- const char * test)
-{
- int ret = 0;
- if (result == -1)
- {
- ACE_ERROR ((LM_ERROR, "ERROR POLICIES : "
- "Exception caught while testing "
- "%C QoS\n",
- test));
- }
- else if (result > 0)
- {
- ret = result;
- ACE_ERROR ((LM_ERROR, "ERROR POLICIES : "
- "<%d> errors found while testing "
- "%C QoS\n",
- result, test));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "%C QoS test passed!\n",
- test));
- }
- return ret;
-}
-
-int
-ACE_TMAIN (int , ACE_TCHAR **)
-{
- PublisherPolicyTest publisher;
- SubscriberPolicyTest subscriber;
- DatawriterPolicyTest datawriter;
- DatareaderPolicyTest datareader;
- TopicPolicyTest topic;
- DomainParticipantPolicyTest domainparticipant;
-
- int ret = 0;
- int test = 0;
- try
- {
- test = publisher.run ();
- ret += handle_result (test, "Publisher");
- test = subscriber.run ();
- ret += handle_result (test, "Subscriber");
- test = datawriter.run ();
- ret += handle_result (test, "Datawriter");
- test = datareader.run ();
- ret += handle_result (test, "DataReader");
- test = topic.run ();
- ret += handle_result (test, "Topic");
- test = domainparticipant.run ();
- ret += handle_result (test, "DomainParticipant");
- }
- catch (...)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Unexpected exception caught."));
- return -1;
- }
- return 0;
-}