Test::Unit 0.30 fails on Error.pm catch syntax and example path normalization
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- perl
- Lĩnh vực
- compilers, testing-qa
Hướng nghiên cứu
Chạy bộ kiểm thử Test::Unit 0.30 trên cả backend JVM và backend trình thông dịch, bắt đầu với t/tlib/ExceptionChecker.pm cùng các test t/all_tests.t, t/assert.t và t/try_examples.t. Truy vết lỗi phân tích cú pháp động của catch ... with và sự khác biệt trong đường dẫn ví dụ ./, sau đó bổ sung độ bao phủ hồi quy do chính dự án sở hữu. Công việc được xem là hoàn tất khi cả 89 test upstream đều đạt trên cả hai backend mà không thay đổi các test upstream.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The CPAN compatibility run 20260918-141920-96054 reports Test::Unit 0.30 as a failure, although the same upstream distribution passes completely under system Perl.
Reproduction
Run the normal Test::Unit 0.30 test suite with PerlOnJava. The failure affects both the JVM backend and the interpreter backend.
Expected result
System Perl passes all 3 test programs and 89 tests:
t/all_tests.t— passt/assert.t— passt/try_examples.t— pass
Actual result
PerlOnJava reports 3 failed test programs and 1 failed subtest out of 4:
-
t/all_tests.tandt/assert.tfail while loadingt/tlib/ExceptionChecker.pm:Bareword found where operator expected (Do you need to predeclare "with"?) at t/tlib/ExceptionChecker.pm line 37, near "with"The affected Error.pm syntax is the dynamic exception selector form:
catch $exception_class with { ... } -
t/try_examples.truns, but its golden-output comparison fails because PerlOnJava reports:1) ./examples/fail_example.pm:19 - test_fail(fail_example)while the expected upstream output is:
1) examples/fail_example.pm:19 - test_fail(fail_example)
Impact
This is a pure-Perl compatibility failure, not an XS/native dependency or environmental prerequisite. The parser failure prevents most of the suite from compiling, and the path discrepancy breaks the remaining example-output assertion.
Acceptance criteria
catch $exception_class with { ... }parses and executes equivalently to system Perl on both backends.Test::Unit0.30 passes all upstream tests on both backends.- The example failure path is normalized consistently with Perl behavior, without changing the upstream tests.
- Add focused project-owned regression coverage for both the dynamic
catch ... withsyntax and the./path discrepancy.
Evidence
- CPAN run:
20260918-141920-96054 - Distribution:
Test-Unit-0.30 - System Perl result:
PASS, 3 files / 89 tests - PerlOnJava result:
FAIL, 3 files / 4 observed subtests - Both JVM and interpreter backends reproduce the parser failure.
The GitHub duplicate search was attempted during classification but the GitHub API was unavailable; please check for related parser or path-normalization issues before merging this report.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 7
- Merge trung bình
- 5 giờ 11 phút
- Pull request đã merge (30 ngày)
- 186
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fglock/PerlOnJava
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1651 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#1579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cpan-port area:unicode bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
fglock/PerlOnJava#1341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:performance area:runtime bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
fglock/PerlOnJava#1723 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DateTime::subtract fails when nanosecond result crosses midnightCó thể đã có người làm @fglock đã nhận 1 ngày trước. Đang mởarea:runtime bug high-impact
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
fglock/PerlOnJava#1720 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
chore: remove unused .gemini configuration directoryCó thể đã có người làm @JayadityaGit đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
openfoodfacts/openfoodfacts-server#14878 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
radiator-software/p5-net-ssleay#577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
beyondgrep/website#143 ·
-
CPAN install failingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sous-chefs/perl#110 · 1 bình luận ·
-
bug help wanted
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 70/100
bioepic-data/bervo#145 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày