summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/Linear_Priority/server.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-08 17:01:38 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-08 17:01:38 +0000
commit304706df1ef2600a9713122b030305fee07b945a (patch)
tree2ab631d155c7ad8c42e06565c0ce8fd200531042 /TAO/tests/RTCORBA/Linear_Priority/server.cpp
parent35303ce4d93f4afceef5acf0b8952132c23889db (diff)
downloadATCD-304706df1ef2600a9713122b030305fee07b945a.tar.gz
ChangeLogTag: Sun Jun 30 22:22:05 2002 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'TAO/tests/RTCORBA/Linear_Priority/server.cpp')
-rw-r--r--TAO/tests/RTCORBA/Linear_Priority/server.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/TAO/tests/RTCORBA/Linear_Priority/server.cpp b/TAO/tests/RTCORBA/Linear_Priority/server.cpp
index bdbad4ee4a9..4e443f13252 100644
--- a/TAO/tests/RTCORBA/Linear_Priority/server.cpp
+++ b/TAO/tests/RTCORBA/Linear_Priority/server.cpp
@@ -4,7 +4,7 @@
#include "testS.h"
#include "tao/RTPortableServer/RTPortableServer.h"
#include "../check_supported_priorities.cpp"
-#include "./readers.cpp"
+#include "../common_args.cpp"
class test_i :
public POA_test,
@@ -70,6 +70,7 @@ static CORBA::ULong max_request_buffer_size = 0;
static CORBA::Boolean allow_borrowing = 0;
static const char *ior = "ior";
+static int debug = 1;
static const char *bands_file = "bands";
static const char *lanes_file = "lanes";
@@ -77,7 +78,7 @@ static const char *lanes_file = "lanes";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "b:l:");
+ ACE_Get_Opt get_opts (argc, argv, "b:d:l:");
int c;
while ((c = get_opts ()) != -1)
@@ -87,6 +88,10 @@ parse_args (int argc, char **argv)
bands_file = get_opts.opt_arg ();
break;
+ case 'd':
+ debug = ::atoi (get_opts.opt_arg ());
+ break;
+
case 'l':
lanes_file = get_opts.opt_arg ();
break;
@@ -96,6 +101,7 @@ parse_args (int argc, char **argv)
ACE_ERROR_RETURN ((LM_ERROR,
"usage: %s "
"-b <bands_file> "
+ "-d <debug> "
"-l <lanes_file> "
"\n",
argv [0]),
@@ -183,7 +189,8 @@ main (int argc, char **argv)
get_priority_bands ("server",
bands_file,
rt_orb.in (),
- policies
+ policies,
+ debug
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result != 0)
@@ -200,7 +207,8 @@ main (int argc, char **argv)
max_buffered_requests,
max_request_buffer_size,
allow_borrowing,
- policies
+ policies,
+ debug
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result != 0)