Fix Test::More non-local last SKIP warning suppression
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- perl
- Área
- testing-qa
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Perl
- Estrellas
- 64
- Forks
- 6
- Merge medio
- 4 h 42 min
- PR fusionados (30 d)
- 182
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fglock/PerlOnJava
-
area:cpan-port area:unicode bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
fglock/PerlOnJava#1341 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port area:regex area:unicode bug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
fglock/PerlOnJava#1556 ·
Los mantenedores suelen responder en 1 día
-
area:backend area:runtime bug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
fglock/PerlOnJava#1554 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port area:runtime bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
fglock/PerlOnJava#1552 ·
Los mantenedores suelen responder en 1 día
-
area:backend area:cpan-port bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
fglock/PerlOnJava#1548 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fglock/PerlOnJava
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
objectionary/eolang.sty#184 ·
-
Remote IMAP SSL setting is not inherited by discovered folders, causing port 143 connectionsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
linux-test-project/lcov#542 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
-
XS::Parse::Infix versions from 0.40 through 0.49 for Perl treat a number as an array referenceAbierto1.severity: security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día