diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-04-17 12:44:56 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-04-17 12:44:56 +0000 |
commit | 37698ac13e6c088d690d4d7ee5635c83f340f956 (patch) | |
tree | 5ce87764e17da4a19e8e3e6798453f1a63343e9a /t/run | |
parent | c49b597d07430509a57aa1eb8401de4245277a3a (diff) | |
download | perl-37698ac13e6c088d690d4d7ee5635c83f340f956.tar.gz |
Test dbmopen more thoroughly, including closing the coverage hole for
the code that automatically requires AnyDBM_File.pm in pp_dbmopen.
p4raw-id: //depot/perl@33705
Diffstat (limited to 't/run')
-rw-r--r-- | t/run/fresh_perl.t | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/t/run/fresh_perl.t b/t/run/fresh_perl.t index b906285514..a67f47ee9a 100644 --- a/t/run/fresh_perl.t +++ b/t/run/fresh_perl.t @@ -716,36 +716,6 @@ ok print join '', @a, "\n"; EXPECT 123456789 -######## [ID 20020104.007] "coredump on dbmclose" -package Foo; -eval { require AnyDBM_File }; # not all places have dbm* functions -if ($@) { - print "ok\n"; - exit 0; -} -package Foo; -sub new { - my $proto = shift; - my $class = ref($proto) || $proto; - my $self = {}; - bless($self,$class); - my %LT; - dbmopen(%LT, "dbmtest", 0666) || - die "Can't open dbmtest because of $!\n"; - $self->{'LT'} = \%LT; - return $self; -} -sub DESTROY { - my $self = shift; - dbmclose(%{$self->{'LT'}}); - 1 while unlink 'dbmtest'; - 1 while unlink <dbmtest.*>; - print "ok\n"; -} -package main; -$test = Foo->new(); # must be package var -EXPECT -ok ######## example from Camel 5, ch. 15, pp.406 (with my) # SKIP: ord "A" == 193 # EBCDIC use strict; |