Subject: | Test::Output-needing tests |
Date: | Tue, 05 Aug 2008 13:17:39 +0200 (CEST) |
To: | bug-HTML-Stream [...] rt.cpan.org |
From: | Havard Eidnes <he [...] NetBSD.org> |
Hi,
while updating HTML-Stream for the NetBSD pkgsrc collection, I
found that the tests using Test::Output were all being skipped,
despite me just having installed that package.
This diff appears to fix the problem:
--- t/02-OO_Tests.t.orig 2008-08-05 12:28:40.000000000 +0200
+++ t/02-OO_Tests.t
@@ -43,7 +43,7 @@ is_deeply (\@tags, \@historic_tags, "Tag
# Skip tests if we can't run them.
SKIP : {
skip 'Test::Output is needed for OO tests to run.', 16
- unless eval { require 'Test::Output' };
+ unless ! eval { use Test::Output };
# Check that some of these tags actually work as expected...
stdout_is( sub { $HTML->ABBR }, "<ABBR>" );
This diff was made after doing a system call trace and finding
that it was searching for the file Test::Output.pm in various
directories, instead of Test/Output.pm the same places.
Best regards,
- Havard