Fix Test::More non-local last SKIP warning suppression
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- perl
- 領域
- testing-qa
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Perl
- 星號
- 64
- 分支
- 6
- 平均合併
- 4 小時 42 分鐘
- 30 天內合併 PR
- 182
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
fglock/PerlOnJava 的其他 Issue
-
area:cpan-port area:unicode bug
難度 2/5 1-3 小時 新手友好度 88/100
fglock/PerlOnJava#1341 ·
維護者通常 1 天內回覆
-
area:cpan-port area:regex area:unicode bug
難度 4/5 3-5 天 新手友好度 52/100
fglock/PerlOnJava#1556 ·
維護者通常 1 天內回覆
-
area:backend area:runtime bug
難度 3/5 1-2 天 新手友好度 68/100
fglock/PerlOnJava#1554 ·
維護者通常 1 天內回覆
-
area:cpan-port area:runtime bug
難度 3/5 1-2 天 新手友好度 55/100
fglock/PerlOnJava#1552 ·
維護者通常 1 天內回覆
-
area:backend area:cpan-port bug
難度 4/5 3-5 天 新手友好度 48/100
fglock/PerlOnJava#1548 ·
維護者通常 1 天內回覆
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 87/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
objectionary/eolang.sty#184 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 82/100
linux-test-project/lcov#542 ·
-
難度 2/5 1-3 小時 新手友好度 86/100