summaryrefslogtreecommitdiff
path: root/TAO/tests/Hang_Shutdown
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-03-14 08:42:11 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-03-14 08:42:11 +0000
commit8aef8cb45f444f0769e4f25bb01b59e7c0baabb5 (patch)
tree7a9d76387be95fcc9bcd9dfddade13d1f94f52d3 /TAO/tests/Hang_Shutdown
parent0aa54d561150f006339087807618fad99d244289 (diff)
downloadATCD-8aef8cb45f444f0769e4f25bb01b59e7c0baabb5.tar.gz
ChangeLogTag:Mon Mar 14 13:55:41 (IST) 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tests/Hang_Shutdown')
-rw-r--r--TAO/tests/Hang_Shutdown/Test.idl13
-rwxr-xr-xTAO/tests/Hang_Shutdown/run_test.pl75
2 files changed, 88 insertions, 0 deletions
diff --git a/TAO/tests/Hang_Shutdown/Test.idl b/TAO/tests/Hang_Shutdown/Test.idl
new file mode 100644
index 00000000000..bef07d739ae
--- /dev/null
+++ b/TAO/tests/Hang_Shutdown/Test.idl
@@ -0,0 +1,13 @@
+// $Id$
+
+module TAO
+{
+ module Test
+ {
+ interface Hang
+ {
+ void send_stuff (in string foo,
+ in boolean flag);
+ };
+ };
+};
diff --git a/TAO/tests/Hang_Shutdown/run_test.pl b/TAO/tests/Hang_Shutdown/run_test.pl
new file mode 100755
index 00000000000..5b4247fbbff
--- /dev/null
+++ b/TAO/tests/Hang_Shutdown/run_test.pl
@@ -0,0 +1,75 @@
+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;
+
+$status = 0;
+$iorfile = "server.ior";
+
+unlink $iorfile;
+
+$SV = new PerlACE::Process ("server", "");
+$CL = new PerlACE::Process ("client", " -k file://$iorfile");
+
+$SV->Spawn ();
+
+if (PerlACE::waitforfile_timed ($iorfile,
+ $PerlACE::wait_interval_for_process_creation) == -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 (25);
+
+if ($server != 0) {
+ print STDERR "ERROR: server returned $server\n";
+ $status = 1;
+}
+
+unlink $iorfile;
+
+################################
+print STDERR "===== Client with RW handler\n";
+$SV1 = new PerlACE::Process ("server", "");
+$CL1 = new PerlACE::Process ("client",
+ " -ORBSvcConf client.conf");
+
+$SV1->Spawn ();
+
+if (PerlACE::waitforfile_timed ($iorfile,
+ $PerlACE::wait_interval_for_process_creation) == -1) {
+ print STDERR "ERROR: cannot find file <$iorfile>\n";
+ $SV->Kill (); $SV->TimedWait (1);
+ exit 1;
+}
+
+$client1 = $CL1->SpawnWaitKill (300);
+
+if ($client != 0) {
+ print STDERR "ERROR: client returned $client\n";
+ $status = 1;
+}
+
+$server1 = $SV1->WaitKill (25);
+
+if ($server1 != 0) {
+ print STDERR "ERROR: server returned $server\n";
+ $status = 1;
+}
+
+
+unlink $iorfile;
+exit $status;