From a39ff6488d3f88873fdf6170507f84a234b01f14 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 21 Apr 2021 00:02:05 +0500 Subject: 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/ --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) = @_; -- cgit v1.2.3-24-ge0c7