Date: | Fri, 10 Oct 2003 23:12:17 -0700 |
From: | Michael G Schwern <schwern [...] pobox.com> |
To: | cdbi-talk [...] groups.kasei.com, tmtm [...] cpan.org |
Subject: | [PATCH] t/10-mysql.t too verbose |
Without Date::Simple installed, I get this from 'make test'.
t/10-mysql..........skipped
all skipped: Need Date::Simple for this test (Can't locate Date/Simple.pm in @INC (@INC contains: /usr/local/src/CPAN/Class-DBI-0.94/blib/lib /usr/local/src/CPAN/Class-DBI-0.94/blib/arch /sw/lib/perl5/5.6.0/darwin /sw/lib/perl5/5.6.0/darwin /sw/lib/perl5/5.6.0 /sw/lib/perl5/darwin /sw/lib/perl5/5.6.0/darwin /sw/lib/perl5/5.6.0 /sw/lib/perl5/darwin /sw/lib/perl5 /System/Library/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl/darwin /Library/Perl /Library/Perl/darwin /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl . /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at t/10-mysql.t line 6.
that's quite a lot of verbage to ignore. This patch trims it down a bit.
--- t/10-mysql.t 2003/10/11 06:10:37 1.1
+++ t/10-mysql.t 2003/10/11 06:10:44
@@ -4,10 +4,10 @@
use Test::More;
eval { require Date::Simple };
-plan skip_all => "Need Date::Simple for this test ($@)" if $@;
+plan skip_all => "Need Date::Simple for this test" if $@;
eval { require 't/testlib/MyFoo.pm' };
-plan skip_all => "Need MySQL for this test ($@)" if $@;
+plan skip_all => "Need MySQL for this test" if $@;
plan tests => 60;
--
Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/
...but pity stayed his hand. "It's a pity I've run out of bullets", he
thought.
-- "Bored of the Rings"