diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-01-19 21:22:30 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-01-19 21:22:30 +0000 |
commit | 77c9267e79d87625158fdecaa27a5ce308c517ba (patch) | |
tree | 49893fb8fd0d71274ae17291086c58321a95fd6c /t/op/attrs.t | |
parent | 014ead4bccac5462b3a10654493980250e84b1d4 (diff) | |
download | perl-77c9267e79d87625158fdecaa27a5ce308c517ba.tar.gz |
Make "assertion" attribute code and test conditional
p4raw-id: //depot/perl@23827
Diffstat (limited to 't/op/attrs.t')
-rw-r--r-- | t/op/attrs.t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/op/attrs.t b/t/op/attrs.t index dc91438d0a..2169e3cd7c 100644 --- a/t/op/attrs.t +++ b/t/op/attrs.t @@ -8,7 +8,7 @@ BEGIN { require './test.pl'; } -plan tests => 95; +plan 'no_plan'; $SIG{__WARN__} = sub { die @_ }; @@ -147,7 +147,8 @@ eval 'my $$foo : bar = 1'; like $@, qr/Can't declare scalar dereference in my/; -my @code = qw(assertion lvalue locked method); +my @code = qw(lvalue locked method); +unshift @code, 'assertion' if $] >= 5.009; my @other = qw(shared unique); my %valid; $valid{CODE} = {map {$_ => 1} @code}; |