diff options
author | bala <balanatarajan@users.noreply.github.com> | 2002-12-05 16:17:36 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2002-12-05 16:17:36 +0000 |
commit | 49dba5e16aec6fc1a7e81a1444b5aa5b7f7516e4 (patch) | |
tree | 56dc880a48584bc75e53f0f215053c513fd9cc24 | |
parent | fb88ca0e06a47a898344459dc328d7a588602d7d (diff) | |
download | ATCD-49dba5e16aec6fc1a7e81a1444b5aa5b7f7516e4.tar.gz |
ChangeLogTag:Thu Dec 5 11:16:40 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
-rw-r--r-- | TAO/ChangeLog | 5 | ||||
-rwxr-xr-x | TAO/tests/Server_Connection_Purging/run_test.pl | 44 |
2 files changed, 49 insertions, 0 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 28185bf257c..802f7258108 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 5 11:16:40 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu> + + * tests/Server_Connection_Purging/run_test.pl: Missed this in my + last checkin. + Thu Dec 5 08:24:23 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu> * tests/Bug_1020_Regression/Bug_1020_Regression.dsw (Project): diff --git a/TAO/tests/Server_Connection_Purging/run_test.pl b/TAO/tests/Server_Connection_Purging/run_test.pl new file mode 100755 index 00000000000..52ad158288f --- /dev/null +++ b/TAO/tests/Server_Connection_Purging/run_test.pl @@ -0,0 +1,44 @@ +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"); +$orbport = 10000 + PerlACE::uniqueid (); +unlink $iorfile; +$status = 0; + +$SV = new PerlACE::Process ("server", "-ORBEndpoint iiop://localhost:$orbport"); +$CL = new PerlACE::Process ("client", "-h localhost -p $orbport"); + +print STDERR $CL->CommandLine(), "\n" ; +$SV->Spawn (); + +if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) { + print STDERR "ERROR: cannot find file <$iorfile>\n"; + $SV->Kill (); $SV->TimedWait (1); + exit 1; +} + +$client = $CL->SpawnWaitKill (300); + +if ($client != 0) { + print STDERR "ERROR: client returned $client\n"; + $status = 1; +} + +$server = $SV->WaitKill (120); + +if ($server != 0) { + print STDERR "ERROR: server returned $server\n"; + $status = 1; +} + +unlink $iorfile; + +exit $status; |