diff options
author | 2019-02-13 21:15:00 +0000 | |
---|---|---|
committer | 2019-02-13 21:15:00 +0000 | |
commit | 9f11ffb7133c203312a01e4b986886bc88c7d74b (patch) | |
tree | 6618511204c614b20256e4ef9dea39a7b311d638 /gnu/usr.bin/perl/t/op/repeat.t | |
parent | Import perl-5.28.1 (diff) | |
download | wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.tar.xz wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.zip |
Fix merge issues, remove excess files - match perl-5.28.1 dist
looking good sthen@, Great! bluhm@
Diffstat (limited to 'gnu/usr.bin/perl/t/op/repeat.t')
-rw-r--r-- | gnu/usr.bin/perl/t/op/repeat.t | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/gnu/usr.bin/perl/t/op/repeat.t b/gnu/usr.bin/perl/t/op/repeat.t index bee7dac2931..978916689be 100644 --- a/gnu/usr.bin/perl/t/op/repeat.t +++ b/gnu/usr.bin/perl/t/op/repeat.t @@ -2,11 +2,11 @@ BEGIN { chdir 't' if -d 't'; - @INC = '../lib'; + require './test.pl'; + set_up_inc( '../lib' ); } -require './test.pl'; -plan(tests => 48); +plan(tests => 49); # compile time @@ -152,10 +152,10 @@ is($Tiecount::Tiecount, 1, '(...)x... in void context in list (via scalar comma)'); -# perlbug 20011113.110 works in 5.6.1, broken in 5.7.2 +# perlbug 20011113.110 (#7902) works in 5.6.1, broken in 5.7.2 { my $x= [("foo") x 2]; - is( join('', @$x), 'foofoo', 'list repeat in anon array ref broken [ID 20011113.110]' ); + is( join('', @$x), 'foofoo', 'list repeat in anon array ref broken [ID 20011113.110 (#7902)]' ); } # [perl #35885] @@ -183,3 +183,12 @@ fresh_perl_like( { }, '(1) x ~1', ); + +# [perl #130247] Perl_rpeep(OP *): Assertion `oldop' failed +# +# the 'x 0' optimising code in rpeep didn't expect the repeat expression +# to occur on the op_other side of an op_next chain. +# This used to give an assertion failure + +eval q{() = (() or ((0) x 0)); 1}; +is($@, "", "RT #130247"); |