diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-08-09 10:19:08 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2017-08-09 10:19:08 +0200 |
commit | 63b80f7a836166a4c4ecded280ffd9e8545b3ce2 (patch) | |
tree | dda9ce903f35a1eed0595d28a5690930ecfade9a | |
parent | ae6d62ca5a0c011d883dbfe330a5dc8bae0d7ac3 (diff) | |
download | ATCD-63b80f7a836166a4c4ecded280ffd9e8545b3ce2.tar.gz |
Correctly determine the location of tao_idl, fixes the failure of IDL_Test on windows, other tests probably failed silently on Windows because the test couldn't spawn tao_idl
* TAO/orbsvcs/tests/Bug_1393_Regression/run_test.pl:
* TAO/tests/Bug_1628_Regression/run_test.pl:
* TAO/tests/Bug_3154_Regression/run_test.pl:
* TAO/tests/Bug_3743_Regression/run_test.pl:
* TAO/tests/Bug_3845_Regression/run_test.pl:
* TAO/tests/IDL_Test/run_test.pl:
-rwxr-xr-x | TAO/orbsvcs/tests/Bug_1393_Regression/run_test.pl | 7 | ||||
-rwxr-xr-x | TAO/tests/Bug_1628_Regression/run_test.pl | 12 | ||||
-rwxr-xr-x | TAO/tests/Bug_3154_Regression/run_test.pl | 2 | ||||
-rwxr-xr-x | TAO/tests/Bug_3743_Regression/run_test.pl | 2 | ||||
-rwxr-xr-x | TAO/tests/Bug_3845_Regression/run_test.pl | 9 | ||||
-rwxr-xr-x | TAO/tests/IDL_Test/run_test.pl | 9 |
6 files changed, 17 insertions, 24 deletions
diff --git a/TAO/orbsvcs/tests/Bug_1393_Regression/run_test.pl b/TAO/orbsvcs/tests/Bug_1393_Regression/run_test.pl index 1ad9289c14c..fea15548302 100755 --- a/TAO/orbsvcs/tests/Bug_1393_Regression/run_test.pl +++ b/TAO/orbsvcs/tests/Bug_1393_Regression/run_test.pl @@ -18,7 +18,10 @@ my $ifr_service_bin = "../../IFR_Service"; my $tao_ifr_bin = "$ENV{ACE_ROOT}/bin"; # The location of the tao_idl utility binary -my $tao_idl_bin = "$ENV{ACE_ROOT}/bin"; +my $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl"; +if (exists $ENV{HOST_ROOT}) { + $tao_idl = "$ENV{HOST_ROOT}/bin/tao_idl"; +} my $service = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n"; my $client = PerlACE::TestTarget::create_target (2) || die "Create target 2 failed\n"; @@ -36,7 +39,7 @@ $service->DeleteFile ($ifr_ior); $client->DeleteFile ($ifr_ior); $taoifr->DeleteFile ($ifr_ior); -$TAO_IDL = $service->CreateProcess("$tao_idl_bin/tao_idl", "$service_test_idl"); +$TAO_IDL = $service->CreateProcess("$tao_idl", "$service_test_idl"); $IFR_SERVICE = $service->CreateProcess("$ifr_service_bin/tao_ifr_service", "-o $service_ifr_ior"); $TAO_IFR = $service->CreateProcess("$tao_ifr_bin/tao_ifr", "-ORBInitRef InterfaceRepository=file://$taoifr_ifr_ior ". diff --git a/TAO/tests/Bug_1628_Regression/run_test.pl b/TAO/tests/Bug_1628_Regression/run_test.pl index b6baa9a73a9..7f2c56bbb9f 100755 --- a/TAO/tests/Bug_1628_Regression/run_test.pl +++ b/TAO/tests/Bug_1628_Regression/run_test.pl @@ -9,14 +9,10 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' use lib "$ENV{ACE_ROOT}/bin"; use PerlACE::TestTarget; -$status =0; - -# The location of the tao_idl utility - depends on O/S -if ($^O eq "MSWin32"){ - $tao_idl = "../../../bin/tao_idl"; -} -else{ - $tao_idl = "../../../TAO/TAO_IDL/tao_idl"; +$status = 0; +my $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl"; +if (exists $ENV{HOST_ROOT}) { + $tao_idl = "$ENV{HOST_ROOT}/bin/tao_idl"; } my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n"; diff --git a/TAO/tests/Bug_3154_Regression/run_test.pl b/TAO/tests/Bug_3154_Regression/run_test.pl index bc2e37a1383..bf9d497c2b1 100755 --- a/TAO/tests/Bug_3154_Regression/run_test.pl +++ b/TAO/tests/Bug_3154_Regression/run_test.pl @@ -7,7 +7,7 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' use lib "$ENV{ACE_ROOT}/bin"; use PerlACE::TestTarget; -$tao_idl = "$PerlACE::ACE_ROOT/bin/tao_idl"; +my $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl"; if (exists $ENV{HOST_ROOT}) { $tao_idl = "$ENV{HOST_ROOT}/bin/tao_idl"; } diff --git a/TAO/tests/Bug_3743_Regression/run_test.pl b/TAO/tests/Bug_3743_Regression/run_test.pl index 58f569930c6..a266c134516 100755 --- a/TAO/tests/Bug_3743_Regression/run_test.pl +++ b/TAO/tests/Bug_3743_Regression/run_test.pl @@ -11,7 +11,7 @@ $status = 0; my $test = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n"; -my $tao_idl = "$PerlACE::ACE_ROOT/bin/tao_idl"; +my $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl"; if (exists $ENV{HOST_ROOT}) { $tao_idl = "$ENV{HOST_ROOT}/bin/tao_idl"; } diff --git a/TAO/tests/Bug_3845_Regression/run_test.pl b/TAO/tests/Bug_3845_Regression/run_test.pl index 43851bf59d0..bc7adaddbbc 100755 --- a/TAO/tests/Bug_3845_Regression/run_test.pl +++ b/TAO/tests/Bug_3845_Regression/run_test.pl @@ -17,12 +17,9 @@ open (STDOUT, ">" . File::Spec->devnull()); open (OLDERR, ">&STDERR"); open (STDERR, ">&STDOUT"); -# The location of the tao_idl utility - depends on O/S -if ($^O eq "MSWin32"){ - $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl"; -} -else{ - $tao_idl = "$ENV{TAO_ROOT}/TAO_IDL/tao_idl"; +my $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl"; +if (exists $ENV{HOST_ROOT}) { + $tao_idl = "$ENV{HOST_ROOT}/bin/tao_idl"; } my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n"; diff --git a/TAO/tests/IDL_Test/run_test.pl b/TAO/tests/IDL_Test/run_test.pl index 75dc80411e3..90a7fa9f5d9 100755 --- a/TAO/tests/IDL_Test/run_test.pl +++ b/TAO/tests/IDL_Test/run_test.pl @@ -23,12 +23,9 @@ open (STDOUT, ">" . File::Spec->devnull()); open (OLDERR, ">&STDERR"); open (STDERR, ">&STDOUT"); -# The location of the tao_idl utility - depends on O/S -if ($^O eq "MSWin32"){ - $tao_idl = "../../../bin/tao_idl"; -} -else{ - $tao_idl = "../../TAO_IDL/tao_idl"; +my $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl"; +if (exists $ENV{HOST_ROOT}) { + $tao_idl = "$ENV{HOST_ROOT}/bin/tao_idl"; } my $server2 = PerlACE::TestTarget::create_target (2) || die "Create target 2 failed\n"; |