On Tuesday 01 July 2008 04:44:55 James Keenan via RT wrote:
> Applying this patch, my 'make test' immediately failed.
Does this patch fix it?
-- c
=== t/harness
==================================================================
--- t/harness (revision 28942)
+++ t/harness (local)
@@ -75,7 +75,7 @@
my $harness;
if ($longopts->{archive}) {
eval { require TAP::Harness::Archive };
- if( $@ ) {
+ if ($@) {
die "\n" . ('-' x 55) . "\nCould not load TAP::Harness::Archive."
. "\nPlease install it if you want to create TAP archives.\n"
. ('-' x 55) . "[EMAIL PROTECTED]";
@@ -88,11 +88,15 @@
}
);
} else {
+ eval { require TAP::Harness };
+ if ($@) {
+ Test::Harness::runtests(@tests);
+ }
$harness = TAP::Harness->new({verbosity => $ENV{HARNESS_VERBOSE}, merge => 0});
}
$harness->runtests(@tests);
- if($longopts->{send_to_smolder}) {
+ if ($longopts->{send_to_smolder}) {
send_archive_to_smolder();
}
}