Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Fix Test::More non-local last SKIP warning suppression

Aperta
#1,482 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
perl
Ambito
testing-qa

Direzione di ricerca

The issue is in Test::More.pm around line 1413. Start by examining the skip() subroutine and how it uses 'no warnings "exiting"' before the 'last SKIP'. Run the failing test t/Tags-Output-Raw/09-put-preserve_from_attribute.t to reproduce the warning. Understand the PerlOnJava backend's control-flow and warning suppression to see why the pragma isn't working. Done looks like the test passing without the unexpected warning.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:backend area:cpan-port area:runtime bug

Tags 0.16 fails Test::NoWarnings around non-local last SKIP

Summary

The upstream Tags 0.16 suite passes under system Perl but PerlOnJava fails one test because Test::More::skip() emits an unexpected Exiting subroutine via last warning while executing a non-local last SKIP.

Reproduction

The stable failing test is t/Tags-Output-Raw/09-put-preserve_from_attribute.t, whose skip block uses:

use warnings;
use Test::More tests => 4;
use Test::NoWarnings;

SKIP: {
    skip 'Need check.', 1;
}

Test::More::skip() executes last SKIP under no warnings 'exiting'. Standard Perl suppresses the warning and the test passes.

Results
  • Distribution: Tags 0.16
  • CPAN random-tester run: 20260922-093937-23377
  • System Perl: PASS, 38 files / 196 tests
  • PerlOnJava JVM backend: FAIL, 1 of 196 tests
  • PerlOnJava interpreter backend: FAIL, 1 of 196 tests

The PerlOnJava failure reports:

Exiting subroutine via last at Test/More.pm line 1413

The JVM minimal reproducer may additionally report Label not found for "last SKIP"; the archived distribution run fails through Test::NoWarnings because of the unexpected warning.

This is a PerlOnJava control-flow and warning-suppression compatibility issue, not a Tags implementation failure or native dependency issue.

Acceptance criteria
  • Test::More::skip() suppresses the exiting warning for its intentional non-local last SKIP on both backends.
  • The focused reproducer passes without an unexpected warning.
  • Tags 0.16 t/Tags-Output-Raw/09-put-preserve_from_attribute.t passes on both backends.
  • Add a project-owned, standard-Perl-validated regression test for this behavior.
Lingua principale
Perl
Stelle
64
Fork
6
Merge medio
5h
PR unite (30g)
161

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.