3 # Copyright (c) 2002 Slaven Rezic
5 # You may redistribute only under the same terms as Perl 5, as specified
6 # in the README file that comes with the distribution.
12 @INC = ('.', '../lib');
16 require Config; import Config;
17 if ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bStorable\b/) {
18 print "1..0 # Skip: Storable was not built\n";
29 print "1..0 # skip: tests only work with Test::More\n";
34 BEGIN { plan tests => 1 }
37 $SIG{__WARN__} = sub { push @warns, shift };
38 $SIG{__DIE__} = sub { require Carp; warn Carp::longmess(); warn "Evil die!" };
42 Storable::dclone({foo => "bar"});
44 is(join("", @warns), "", "__DIE__ is not evil here");