diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-11-25 22:23:14 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-11-25 22:23:14 +0000 |
commit | 121047cdff42c6ebcc7c86e6b6ad7fd7d8269c1a (patch) | |
tree | 90310819f505d81ea97e236916274408e34edd02 /TAO/tests/Servant_To_Reference_Test | |
parent | b032441b01b5ed02c1885821350695b9e7a852a0 (diff) | |
download | ATCD-121047cdff42c6ebcc7c86e6b6ad7fd7d8269c1a.tar.gz |
ChangeLogTag:Tue Nov 25 16:21:59 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tests/Servant_To_Reference_Test')
-rwxr-xr-x | TAO/tests/Servant_To_Reference_Test/run_test.pl | 28 | ||||
-rw-r--r-- | TAO/tests/Servant_To_Reference_Test/server.cpp | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/TAO/tests/Servant_To_Reference_Test/run_test.pl b/TAO/tests/Servant_To_Reference_Test/run_test.pl new file mode 100755 index 00000000000..dcae6d38fb7 --- /dev/null +++ b/TAO/tests/Servant_To_Reference_Test/run_test.pl @@ -0,0 +1,28 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +use lib '../../../bin'; +use PerlACE::Run_Test; + +$iorfile = PerlACE::LocalFile ("server.ior"); +unlink $iorfile; +$status = 0; + +$SV = new PerlACE::Process ("server", "-o $iorfile"); + +$SV->Spawn (); + +$server = $SV->WaitKill (120); + +if ($server != 0) { + print STDERR "ERROR: server returned $server\n"; + $status = 1; +} + +unlink $iorfile; + +exit $status; diff --git a/TAO/tests/Servant_To_Reference_Test/server.cpp b/TAO/tests/Servant_To_Reference_Test/server.cpp index 9d5b1623de9..545e7014b90 100644 --- a/TAO/tests/Servant_To_Reference_Test/server.cpp +++ b/TAO/tests/Servant_To_Reference_Test/server.cpp @@ -42,7 +42,7 @@ MT_Task::svc (void) ACE_TRY { for (CORBA::Long i = 0; - i != 10000; + i != 2000; ++i) { CORBA::Object_var one_ref = |