Skip to content

fix: pty tests skip gracefully when IO::Pty < 1.25#276

Draft
toddr-bot wants to merge 1 commit intocpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-pty-test-version-check
Draft

fix: pty tests skip gracefully when IO::Pty < 1.25#276
toddr-bot wants to merge 1 commit intocpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-pty-test-version-check

Conversation

@toddr-bot
Copy link
Copy Markdown
Contributor

What

Pty tests now check IO::Pty->VERSION('1.25') at plan time and skip cleanly on older versions.

Why

Since IPC::Run requires IO::Pty 1.25 (GH#240), systems with 1.21-1.24 get a crash
(process ended prematurely) instead of a clean skip_all. This causes false test
failures in environments where IO::Pty hasn't been updated yet.

How

  • Added IO::Pty->VERSION('1.25') check in the BEGIN blocks of t/pty.t and t/pty_error_handling.t
  • Removed obsolete runtime version warnings for IO::Pty < 1.00 (unreachable now that 1.25 is required)

Testing

  • With IO::Pty 1.23: both tests skip with a clear message
  • Full suite: 860 tests pass, 0 failures

🤖 Generated with Claude Code

Since IPC::Run now requires IO::Pty 1.25 (GH#240), the pty tests
must check the version at plan time instead of just checking that
IO::Pty can be loaded. Without this, systems with IO::Pty 1.21-1.24
get a crash ("process ended prematurely") instead of a clean skip.

Also removes obsolete runtime version warnings for IO::Pty < 1.00,
which are unreachable now that 1.25 is required.

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.

1 participant