From 4cb2fcc5bf443de9f3f05fe085c42a317101321b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 22 Jul 2017 23:33:09 +0200 Subject: workaround perl-5.26 vs librpm bug which results in the following on exit cleanup: 'panic: free from wrong pool, 0!=6c7010 during global destruction.' --- NEWS | 1 + t/parse.t | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 2850d20..713e724 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ - test failure: o fix test failure with perl-5.26 + o workaround perl-5.26 vs librpm bug which results on exit cleanup Version 5.12 - 10 November 2016 diff --git a/t/parse.t b/t/parse.t index 6d80265..bcbc0b4 100644 --- a/t/parse.t +++ b/t/parse.t @@ -5,6 +5,7 @@ use strict; use warnings; use Test::More tests => 41; use MDV::Packdrakeng; +use POSIX '_exit'; use URPM; use URPM::Build; @@ -117,3 +118,6 @@ ok(URPM::rpmvercmp("1:1-1mdk", "2:1-1mdk") == -1, "epoch 1 vs 2 = -1"); ok(defined $pkg, "Parsing a srpm works"); is($pkg->arch, 'src', 'srpm arch is "src"'); } + +# workaround perl-5.26 vs librpm resulting in 'panic: free from wrong pool, 0!=6c7010 during global destruction.': +END { POSIX::_exit($?) }; -- cgit v1.2.1