This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence ill-behaved or failing Module::Build tests on VMS.
[perl5.git] / lib / vmsish.t
index 71ca3b5..847d1a6 100644 (file)
@@ -5,9 +5,12 @@ BEGIN {
     @INC = '../lib'; 
 }
 
-my $Invoke_Perl = qq(MCR $^X "-I[-.lib]");
+my $perl = $^X;
+$perl = VMS::Filespec::vmsify($perl) if $^O eq 'VMS';
 
-require "./test.pl";
+my $Invoke_Perl = qq(MCR $perl "-I[-.lib]");
+
+BEGIN { require "./test.pl"; }
 plan(tests => 25);
 
 SKIP: {