Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / POA / EndpointPolicy / run_test_dh.pl
blob2ccf77ea4e4389b24695a15aa033fa1a7294fcba
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;
12 $port = 12345;
14 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
16 # configuration not passed to the server by the command line but the server
17 # will open it.
18 my $svcconf = "multi_prot.conf";
19 my $server_svcfile = $server->LocalFile ($svcconf);
20 if ($server->PutFile ($svcconf) == -1) {
21 print STDERR "ERROR: cannot set file <$server_svcfile>\n";
22 exit 1;
26 $iiopSV = $server->CreateProcess ("server", "-ORBDottedDecimalAddresses 0 -ORBUseSharedProfile 1 -h default -p $port");
28 print "Starting server using only IIOP\n";
30 $result = $iiopSV->SpawnWaitKill ($server->ProcessStartWaitInterval());
32 if ($result != 0) {
33 print STDERR "ERROR: IIOP-only server returned $result\n";
34 $status = 1;
37 print "Starting server using multiple protocols\n";
39 $multiSV = $server->CreateProcess ("server", "-ORBDottedDecimalAddresses 0 -ORBUseSharedProfile 0 -h multi -p $port");
41 $result = $multiSV->SpawnWaitKill($server->ProcessStartWaitInterval());
43 if ($result != 0) {
44 print STDERR "ERROR: multiprotocol server returned $result\n";
45 $status = 1;
48 exit $status;