Skip to content

fix: add use 5.010 to all test files for Perl 5.8.x protection#30

Merged
toddr merged 1 commit intocpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-issue-29
Mar 21, 2026
Merged

fix: add use 5.010 to all test files for Perl 5.8.x protection#30
toddr merged 1 commit intocpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-issue-29

Conversation

@toddr-bot
Copy link
Collaborator

@toddr-bot toddr-bot commented Mar 21, 2026

Summary

Adds use 5.010; to the three test files (t/0use.t, t/export.t, t/apache.t) that were missing it. While Makefile.PL already guards against Perl 5.8.x at configure time (PR #25), this ensures every test file consistently declares the minimum version — providing defense in depth and preventing confusing syntax errors if tests are somehow run directly on old perls.

Fixes #29

Changes

  • Add use 5.010; to t/0use.t, t/export.t, t/apache.t

Test plan

  • All 8 test files pass (make test → Result: PASS, 79 subtests)
  • Verified no test files remain without use 5.010;

Generated by Kōan /fix


Quality Report

Changes: 3 files changed, 3 insertions(+)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

t/0use.t, t/export.t, and t/apache.t were the only test files without
an explicit minimum-version guard. While Makefile.PL already has
use 5.010 (PR cpan-authors#25) which prevents Perl 5.8.x from reaching the test
phase, adding the guard to every test file provides defense in depth
and keeps the test suite consistent.

Fixes cpan-authors#29

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddr toddr marked this pull request as ready for review March 21, 2026 00:39
@toddr toddr merged commit 4f2c627 into cpan-authors:main Mar 21, 2026
22 checks passed
toddr-bot added a commit to toddr-bot/Net-Ident that referenced this pull request Mar 22, 2026
cpanfile listed Fcntl and Config which are not used by Ident.pm
(Fcntl was removed when PR cpan-authors#14 replaced fcntl() with blocking(0)).
Errno is used but was missing from both cpanfile and PREREQ_PM.

Also updates Changes with post-1.27 fixes that were merged but
not recorded (PRs cpan-authors#25, cpan-authors#30, cpan-authors#31, cpan-authors#33).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Break on freebsd 5.8.9

2 participants