This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
skip leaky Storable tests
authorDavid Mitchell <davem@iabyn.com>
Mon, 15 Apr 2019 10:18:22 +0000 (11:18 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 15 Apr 2019 10:18:22 +0000 (11:18 +0100)
commit2cf75007609600e27520fb4e25a34103543889ca
tree5e6126340e508781e1a0c83b7b82549e6f554490
parent188c2c2fd5c01d4619ad8ece46f1417e71262a81
skip leaky Storable tests

A bunch of tests make use of freeze/thaw hooks which deliberately die.
Fixing this looks non-trivial, so this commit just skips those tests
for now if running under Address Sanitizer.

This skip includes a version check, so come 5.31.0 it will start failing
smokes again, providing an incentive to fix.

Example of leaking code:

    use Storable qw(store);
    sub FreezeHookDies::STORABLE_freeze { die ${$_[0]} }
    my $x = bless [], "FreezeHookDies";
    eval { store($x, "store99"); 1 };
dist/Storable/t/blessed.t