This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make t/porting/buildtoc.t use runperl for portability.
[perl5.git] / t / porting / buildtoc.t
index d717e77..4fbcac9 100644 (file)
@@ -6,6 +6,10 @@ BEGIN {
 }
 
 use strict;
+require 't/test.pl';
 
-my $dotslash = $^O eq "MSWin32" ? ".\\" : "./";
-system("${dotslash}perl -f -Ilib pod/buildtoc --build-toc -q --test");
+my $result = runperl(switches => ['-f', '-Ilib'], 
+                     progfile => 'pod/buildtoc', 
+                     args     => ['--build-toc', '-q', '--test', '--build-all']);
+
+print $result;