diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-06-04 11:54:10 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-06-04 14:34:30 -0700 |
commit | e5accad2c334d0d98a2eb0bcfa8f8363dfc3c78a (patch) | |
tree | 93bb5bd3e7fbe2978310c451a9bd0c14b916bb31 /dist/base | |
parent | a130272381198bb249482fb77a994df28ddaf3bf (diff) | |
download | perl-e5accad2c334d0d98a2eb0bcfa8f8363dfc3c78a.tar.gz |
Allow COW values to be deleted from restricted hashes
I wonder how many other things a604c75 broke....
Diffstat (limited to 'dist/base')
-rw-r--r-- | dist/base/t/fields.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dist/base/t/fields.t b/dist/base/t/fields.t index 4999cfed14..a3493ce2ee 100644 --- a/dist/base/t/fields.t +++ b/dist/base/t/fields.t @@ -6,7 +6,7 @@ BEGIN { } use strict; -use Test::More tests => 16; +use Test::More tests => 17; BEGIN { use_ok('fields'); } @@ -106,4 +106,10 @@ package main; is(ref $x, 'Test::FooBar', 'x is a Test::FooBar'); ok(exists $x->{a}, 'x has a'); ok(exists $x->{b}, 'x has b'); + + SKIP: { + skip "This test triggers a perl bug", 1 if $] < 5.014001; + $x->{a} = __PACKAGE__; + ok eval { delete $x->{a}; 1 }, 'deleting COW values'; + } } |