MT#62763 perl: Suppress a perlcritic false positive

We are setting up a global die handler, so we cannot use «local» or the
statement would not have the intended effect.

Warned-by: perlcritic
Fixes: Variables::RequireLocalizedPunctuationVars
Change-Id: Ia0a433b58b4960c3394b25b1f144c0158b30ad1d
pull/1938/head
Guillem Jover 7 months ago
parent fdcee65ab7
commit 377cbbb6d1

@ -83,6 +83,8 @@ sub autotest_init {
my $r = $c->req({command => 'ping'});
ok $r->{result} eq 'pong', 'ping works, daemon operational';
# Setup a global die handler.
## no critic (Variables::RequireLocalizedPunctuationVars)
$SIG{__DIE__} = sub {
terminate(@_);
};

Loading…
Cancel
Save