diff options
author | harrisb <harrisb@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-20 19:20:46 +0000 |
---|---|---|
committer | harrisb <harrisb@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-20 19:20:46 +0000 |
commit | 83707ba1684a4e8f92056fb9fb8564e84717273f (patch) | |
tree | 8b28f02eb4e6873a8f63100551004a71adc37eb0 /TAO/orbsvcs | |
parent | 439ed873abac3dfe14407016b64923d5ae41b924 (diff) | |
download | ATCD-83707ba1684a4e8f92056fb9fb8564e84717273f.tar.gz |
Wed Feb 20 19:17:39 UTC 2013 Byron Harris <harrisb@ociweb.com>
Diffstat (limited to 'TAO/orbsvcs')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/scale_clients/client.cpp | 9 | ||||
-rwxr-xr-x | TAO/orbsvcs/tests/ImplRepo/scale_clients/run_test.pl | 11 |
2 files changed, 13 insertions, 7 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/scale_clients/client.cpp b/TAO/orbsvcs/tests/ImplRepo/scale_clients/client.cpp index da96a09b3a7..49bef759b17 100644 --- a/TAO/orbsvcs/tests/ImplRepo/scale_clients/client.cpp +++ b/TAO/orbsvcs/tests/ImplRepo/scale_clients/client.cpp @@ -123,7 +123,14 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) } } - ACE_ASSERT (n > 0); + if (n == 0) + { + ACE_ERROR_RETURN ((LM_ERROR, + "ERROR: Expected number of requests from " + "server to by > 0\n"), + -1); + } + return 0; diff --git a/TAO/orbsvcs/tests/ImplRepo/scale_clients/run_test.pl b/TAO/orbsvcs/tests/ImplRepo/scale_clients/run_test.pl index 9851d85448f..e90d02d7067 100755 --- a/TAO/orbsvcs/tests/ImplRepo/scale_clients/run_test.pl +++ b/TAO/orbsvcs/tests/ImplRepo/scale_clients/run_test.pl @@ -8,7 +8,6 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' ############################################################################### use lib "$ENV{ACE_ROOT}/bin"; use PerlACE::TestTarget; -use Time::HiRes # Use to wait less than a second between client invocations. $status = 0; $debug_level = '0'; @@ -17,7 +16,7 @@ $debug_level = '0'; my $no_imr = 0; my $clients_count = 6; -my $msecs_between_clients = 500; +my $secs_between_clients = 1; my $server_init_delay = 1; my $server_reply_delay = 0; my $rt_timeout_msecs = 0; @@ -37,9 +36,9 @@ if ($#ARGV >= 0) { $i++; $rt_timeout_msecs = $ARGV[$i]; } - elsif ($ARGV[$i] eq "-msecs_between_clients") { + elsif ($ARGV[$i] eq "-secs_between_clients") { $i++; - $msecs_between_clients = $ARGV[$i]; + $secs_between_clients = $ARGV[$i]; } elsif ($ARGV[$i] eq "-server_init_delay") { $i++; @@ -225,7 +224,7 @@ sub scale_clients_test $status = 1; last; } - Time::HiRes::usleep(1000 * $msecs_between_clients); + sleep($secs_between_clients); } sleep (server_request_delay); @@ -279,7 +278,7 @@ sub scale_clients_test sub usage() { print "Usage: run_test.pl ". "[-clients <num=$clients_count>] ". - "[-msecs_between_clients <msecs=$msecs_between_clients>] ". + "[-secs_between_clients <seconds=$secs_between_clients>] ". "[-server_init_delay <seconds=$server_init_delay>] ". "[-server_reply_delay <seconds=$server_reply_delay] ". "[-rt_timeout <round-trip-timeout-msecs=$rt_timeout_msecs>] ". |