Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#1,482 1 comentario 0 reacciones 0 asignados Ver en GitHub

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

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.
Lenguaje dominante
Perl
Estrellas
64
Forks
6
Merge medio
4 h 42 min
PR fusionados (30 d)
182

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fglock/PerlOnJava

Todos los issues de fglock/PerlOnJava

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.