Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool4 / run_test.pl
blobc9cb5843544469f417c182c09d8b3046ecdb712f
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';
13 foreach $i (@ARGV) {
14 if ($i eq '-debug') {
15 $debug_level = '10';
19 $synch_with_server_option = "";
21 if ($ARGV[0] eq 'synch_with_server') {
22 $synch_with_server_option = "-s";
24 elsif ($ARGV[0] eq '') {
25 #synch with transport
27 else {
28 print STDERR "ERROR: invalid parameter $ARGV[0] \n";
29 exit 1;
32 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
34 $SV = $server->CreateProcess ("server_main", "-ORBdebuglevel $debug_level $synch_with_server_option");
36 $server_status = $SV->Spawn ();
38 if ($server_status != 0) {
39 print STDERR "ERROR: server returned $server_status\n";
40 exit 1;
43 $server_status = $SV->WaitKill ($server->ProcessStopWaitInterval() + 45);
45 if ($server_status != 0) {
46 print STDERR "ERROR: server returned $server_status\n";
47 $status = 1;
50 exit $status;