Fix Test::More non-local last SKIP warning suppression
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
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:
Tags0.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 theexitingwarning for its intentional non-locallast SKIPon both backends.- The focused reproducer passes without an unexpected warning.
Tags0.16t/Tags-Output-Raw/09-put-preserve_from_attribute.tpasses 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
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fglock/PerlOnJava
-
area:cpan-port area:unicode bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
fglock/PerlOnJava#1341 ·
I maintainer di solito rispondono entro 2 giorni
-
area:backend area:cpan-port bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
fglock/PerlOnJava#1548 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
fglock/PerlOnJava#1541 ·
I maintainer di solito rispondono entro 2 giorni
-
area:backend area:cpan-port area:parser area:runtime bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
fglock/PerlOnJava#1528 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 74/100
fglock/PerlOnJava#1524 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di fglock/PerlOnJava
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
openfoodfacts/openfoodfacts-server#14724 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rubocop/ruby-style-guide#982 ·
-
bug question
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RotherOSS/otobo#6172 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno