From: Eric Wong Date: Tue, 20 Apr 2021 19:02:05 +0000 (+0500) Subject: test_common: fix xbail for Perl 5.16 X-Git-Tag: v1.7.0~777 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a39ff6488d3f88873fdf6170507f84a234b01f14;p=public-inbox.git test_common: fix xbail for Perl 5.16 Our use of `ref' was triggering ambiguity in older versions of the Perl parser. Reported-by: Konstantin Ryabitsev Link: https://public-inbox.org/meta/20210420174912.h6d2yv7zu5xr4yfc@nitro.local/ --- diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 2627871a..67fe6336 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -25,7 +25,7 @@ BEGIN { push @EXPORT, @methods; } -sub xbail (@) { BAIL_OUT join(' ', map { ref ? (explain($_)) : ($_) } @_) } +sub xbail (@) { BAIL_OUT join(' ', map { ref() ? (explain($_)) : ($_) } @_) } sub eml_load ($) { my ($path, $cb) = @_;