Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_3553_Regression / run_test.pl
blobf77c4f6ce228f36c30127a08e4b0c6bbaf1875ad
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
10 $status = 0;
11 $debug_level = '0';
12 $cache_size = '256';
13 $port = '27530';
15 foreach $i (@ARGV) {
16 if ($i eq '-debug') {
17 $debug_level = '10';
19 if ($i eq '-high') {
20 $cache_size = '1024';
22 if ($i eq '-mid') {
23 $cache_size = '512';
25 if ($i eq '-low') {
26 $cache_size = '256';
30 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
31 my $client = PerlACE::TestTarget::create_target (2) || die "Create target 2 failed\n";
34 $SV = $server->CreateProcess ("server",
35 "-c $cache_size -ORBdebuglevel $debug_level -ORBListenEndpoints iiop://localhost:$port");
36 $CL = $client->CreateProcess ("client",
37 "-c $cache_size -p $port -ORBdebuglevel $debug_level");
39 $server_status = $SV->Spawn ();
41 if ($server_status != 0) {
42 print STDERR "ERROR: server returned $server_status\n";
43 exit 1;
46 # just for all security...
47 sleep(5);
49 $client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval());
51 if ($client_status != 0) {
52 print STDERR "ERROR: client returned $client_status\n";
53 $status = 1;
56 $server_status = $SV->WaitKill ($server->ProcessStopWaitInterval());
58 if ($server_status != 0) {
59 print STDERR "ERROR: server returned $server_status\n";
60 $status = 1;
63 exit $status;