Subject: | [PATCH] Make prove work under Perl 5.005 |
Hello,
Attached is a small patch to make prove(1) work under Perl 5.005.
With this patch, all tests pass under 5.005_03..
Regards
--
Close the world, txEn eht nepO.
Subject: | Test-Harness-2.64-perl5.5.diff |
diff -ru Test-Harness-2.64-orig/bin/prove Test-Harness-2.64/bin/prove
--- Test-Harness-2.64-orig/bin/prove 2006-10-06 21:35:25.000000000 +0200
+++ Test-Harness-2.64/bin/prove 2007-09-17 14:18:41.708448873 +0200
@@ -100,8 +100,14 @@
}
sub print_version {
- printf( "prove v%s, using Test::Harness v%s and Perl v%vd\n",
- $VERSION, $Test::Harness::VERSION, $^V );
+ if ($] > 5.006) {
+ printf( "prove v%s, using Test::Harness v%s and Perl v%vd\n",
+ $VERSION, $Test::Harness::VERSION, $^V );
+ }
+ else {
+ printf( "prove v%s, using Test::Harness v%s and Perl v%s\n",
+ $VERSION, $Test::Harness::VERSION, $] );
+ }
}
__END__