diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-16 03:35:26 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-16 03:35:26 +0000 |
commit | 019a5d33920ec835684bce9244f85721075aad77 (patch) | |
tree | 273a3d5a4dd3252e6694d2378dfb2b44e5d34186 /TAO/examples/POA | |
parent | a46e837819bfcf8a629dc472c8eef257d84f31d7 (diff) | |
download | ATCD-019a5d33920ec835684bce9244f85721075aad77.tar.gz |
ChangeLogTag:Thu Feb 15 19:23:42 2001 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'TAO/examples/POA')
-rw-r--r-- | TAO/examples/POA/Default_Servant/File_i.cpp | 2 | ||||
-rwxr-xr-x | TAO/examples/POA/Default_Servant/run_test.pl | 29 |
2 files changed, 13 insertions, 18 deletions
diff --git a/TAO/examples/POA/Default_Servant/File_i.cpp b/TAO/examples/POA/Default_Servant/File_i.cpp index cbcc30de1aa..305ffb8c207 100644 --- a/TAO/examples/POA/Default_Servant/File_i.cpp +++ b/TAO/examples/POA/Default_Servant/File_i.cpp @@ -50,7 +50,7 @@ FileImpl::System::open (const char *file_name, // Do an ACE_OS::open ACE_HANDLE file_descriptor = ACE_OS::open (file_name, flags, - 0644); + ACE_DEFAULT_FILE_PERMS); if (file_descriptor == ACE_INVALID_HANDLE) { diff --git a/TAO/examples/POA/Default_Servant/run_test.pl b/TAO/examples/POA/Default_Servant/run_test.pl index c303370d131..f3b103eb413 100755 --- a/TAO/examples/POA/Default_Servant/run_test.pl +++ b/TAO/examples/POA/Default_Servant/run_test.pl @@ -5,38 +5,33 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' # $Id$ # -*- perl -*- -unshift @INC, '../../../../bin'; -require ACEutils; +use lib "../../../../bin"; +use PerlACE::Run_Test; -$iorfile = "server.ior"; +$iorfile = PerlACE::LocalFile ("server.ior"); unlink $iorfile; -$SV = Process::Create ($EXEPREFIX."server".$EXE_EXT, - " -o $iorfile"); +$SV = new PerlACE::Process ("server", "-o $iorfile"); +$CL = new PerlACE::Process ("client", "-k $iorfile"); -if (ACE::waitforfile_timed ($iorfile, 5) == -1) { +$SV->Spawn (); + +if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) { print STDERR "ERROR: cannot find file <$iorfile>\n"; - $SV->Kill (); $SV->TimedWait (1); + $SV->Kill (); exit 1; } -$CL = Process::Create ($EXEPREFIX."client$EXE_EXT ", - " -k $iorfile"); +$client = $CL->SpawnWaitKill (60); -$client = $CL->TimedWait (60); if ($client == -1) { print STDERR "ERROR: client timedout\n"; - $CL->Kill (); $CL->TimedWait (1); } -$SV->Kill (); $SV->TimedWait (1); +$SV->Kill (); unlink $iorfile; unlink "test"; # created by the program -if ($client != 0) { - exit 1; -} - -exit 0; +exit $client; |