blob: 41e141ec41da13e0366c86837c6231b553dda079 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
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;
# The server IOR file
$server_ior_file= PerlACE::LocalFile( "server.ior" );
unlink $server_ior_file;
# The client and server processes
$SERVER= new PerlACE::Process( PerlACE::LocalFile( "server" ) );
$CLIENT= new PerlACE::Process( PerlACE::LocalFile( "client" ) );
# Fire up the server
$SERVER->Spawn();
# We can wait on the IOR file
if (PerlACE::waitforfile_timed( $server_ior_file, 10 ) == -1)
{
print STDERR "ERROR: cannot find $server_ior_file\n";
$SERVER->Kill();
exit 1;
}
if ($CLIENT->SpawnWaitKill( 30 ) != 0)
{
unlink $server_ior_file;
print STDERR "ERROR: Bug #2234 Regression test failed: cannot run client.\n";
$SERVER->Kill();
exit 1;
}
unlink $server_ior_file;
if ($SERVER->WaitKill( 1 ) != 0)
{
print STDERR "ERROR: Bug #2234 Regression test failed: server not exiting.\n";
exit 1;
}
print STDOUT "Bug #2234 Regression test succeeded.\n";
exit 0;
|