tokuhirom@株主の日記 このページをアンテナに追加 RSSフィード

 | 

2008-01-22

Test::Base's strange behavior 17:22 Test::Base's strange behavior - tokuhirom@株主の日記 を含むブックマーク

  • run tests
use strict;
use warnings;
use Test::Base;

__END__

===
--- input: 5
--- expected: 4
use strict;
use warnings;
use Encode;
use Test::Base;

__END__

===
--- input: 5
--- expected: 4
  • do not run tests.
use strict;
use warnings;
use Test::Base;
require Encode;

__END__

===
--- input: 5
--- expected: 4

because, the follow code in the Test/Base.pm:

$SIG{__DIE__} = sub { $DIED = 1; die @_ };

the follow code makes the SIGDIE!

eval { require Encode::ConfigLocal };

oops...

Can't locate Encode/ConfigLocal.pm in @INC (@INC contains: /home/tokuhiro/project/Dev/tokuhiro/mf/site_perl/ /home/tokuhiro/project/CPAN/lib//i386-linux-thread-multi /home/tokuhiro/project/CPAN/lib/ /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/tokuhiro/project/CPAN/lib//Encode.pm line 53.
 |