Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_1476_Test / run_test.pl
blob3ab938bf0fc1681144437243d6cfea7550a43c2d
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 $use_file = 0;
14 foreach $i (@ARGV) {
15 if ($i eq '-debug') {
16 $debug_level = '10';
18 elsif ($i eq '-file') {
19 $use_file = 1;
23 my $client = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
25 my $iorbase = "test.ior";
26 my $client_iorfile = $client->LocalFile ($iorbase);
27 my $ior_arg = ($use_file == 0) ? "corbaloc::1.2\@192.100.0.0:49440/no_object" : "file://$client_iorfile";
29 $CL = $client->CreateProcess ("client");
31 my @synchs = ("none","delayed");
32 my @levels = ("obj", "orb", "thread");
34 foreach $synch (@synchs) {
35 foreach $level (@levels) {
36 $CL->Arguments ("-ORBDebuglevel $debug_level -k $ior_arg -s$synch -l$level");
38 $client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval() + 285);
40 if ($client_status != 0) {
41 print STDERR "ERROR: client returned $client_status\n";
42 $status = 1;
45 print STDOUT "----------\n";
49 exit $status;