develooper Front page | perl.perl5.porters | Postings from November 2003

Test::Harness 2.38 in the core

Thread Next
From:
Rafael Garcia-Suarez
Date:
November 30, 2003 13:54
Subject:
Test::Harness 2.38 in the core
Message ID:
20031130225737.1c0345aa.rgarciasuarez@free.fr
I just integrated Test::Harness 2.38 in bleadperl (change 21827).
prove is now installed in the executables directories.

I had to apply the patch below to the Test::Harness distribution
to make the tests happy.
(I don't know enough about prove to adjust the tests).

--- t/inc_taint.t.orig  Thu Nov 13 06:10:38 2003
+++ t/inc_taint.t       Sun Nov 30 22:53:11 2003
@@ -18,7 +18,11 @@
 
 tie *NULL, 'Dev::Null' or die $!;
 select NULL;
-my($tot, $failed) = Test::Harness::_run_all_tests('t/sample-tests/inc_taint');
+my($tot, $failed) = Test::Harness::_run_all_tests(
+    $ENV{PERL_CORE}
+    ? 'lib/sample-tests/inc_taint'
+    : 't/sample-tests/inc_taint'
+);
 select STDOUT;
 
 ok( Test::Harness::_all_ok($tot), 'tests with taint on preserve @INC' );
--- t/prove-switches.t.orig     Wed Nov 19 05:45:13 2003
+++ t/prove-switches.t  Sun Nov 30 22:53:27 2003
@@ -11,6 +11,7 @@
 use strict;
 use File::Spec;
 use Test::More;
+plan skip_all => "Not adapted to perl core" if $ENV{PERL_CORE};
 plan skip_all => "Not installing prove" if -e "t/SKIP-PROVE";
 
 plan tests => 3;

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About