1
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2
& eval 'exec perl -S $0 $argv:q'
5
# run_test.pl,v 1.1 2003/02/07 01:08:47 mayur Exp
8
# This is a Perl script that tests AMH exceptions
10
use lib "../../../bin";
11
use PerlACE::Run_Test;
13
# Amount of delay (in seconds) between starting a server and a client.
16
# File used to pass AMH server ior to its clients.
17
# This file name is hard-coded in the server.cpp and client.cpp files
18
$iorfile = PerlACE::LocalFile("test.ior");
22
$AMH = new PerlACE::Process ("server", "");
23
$CL = new PerlACE::Process ("client", "");
28
if (PerlACE::waitforfile_timed ($iorfile, $sleeptime) == -1) {
29
print STDERR "ERROR: File containing AMH Server ior,".
30
" <$iorfile>, cannot be found\n";
35
# Run the cleint client.
36
$client = $CL->Spawn ();
41
$client = $CL->WaitKill (30);
43
print STDERR "ERROR: Client returned $amhserver\n";
48
$amhserver= $AMH->WaitKill (60);
49
if ($amhserver != 0) {
50
print STDERR "ERROR: AMH Server returned $amhserver\n";