This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add a TODO test for uninitialized warning hash bucket fencepost error
authorYves Orton <demerphq@gmail.com>
Sat, 20 Oct 2012 11:45:02 +0000 (13:45 +0200)
committerYves Orton <demerphq@gmail.com>
Sat, 20 Oct 2012 12:32:10 +0000 (14:32 +0200)
commit40baebf6601f1e631adc917cf1ad9f2236018158
tree5f5b1bd07366cc2d802a8ac0413c2e4b471aaa33
parent7b37959603b1b0d69bd1b95f95d68fbde7d3c04f
add a TODO test for uninitialized warning hash bucket fencepost error

This test assumes that a fresh hash with one key with keys from
0 to 20 will put a key in every bucket in the hash. Had we better
hash introspection rules we could write this differently and more
correctly. Nevertheless this shows the off-by-one error in key
detection used by the uninitialized warnings logic on my box.

Next patch will untodo the test and fix the bug.
t/lib/warnings/9uninit