Test2:...alFork(3perl)

πŸ’– Test2::Require::RealFork πŸ’–

okay bestie, welcome to the Perl Programmers Reference Guide ✨ this one's filed under Test2::Require::RealFork in section 3perl, and honestly? it's a tiny module with main character energy. let's go 🫢


✨ NAME ✨

Test2::Require::RealFork β€” skip a test file unless the system supports true forking πŸ’…


🌸 DESCRIPTION 🌸

okay so, writing tests that need to fork? super common, we love that for us. the problem is that not every system supports forking. like, at all. not a vibe. 😭

so this library does the hard work for you β€” it checks whether forking is actually supported on the current system. and if forking is not supported? it skips all the tests and exits true. periodt. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

use Test2::Require::RealFork;

... Code that forks ...

look how little you have to type, we love a low-effort queen πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

  • Test2::Require::Fork β€” super similar to this module, but it will allow fork emulation. so if you're chill with emulation, go hang out over there πŸ’–
  • Test2::Require::Threads β€” skips the test file if the system does not support threads. different resource, same protective energy 🧡✨

πŸ”₯ SOURCE πŸ”₯

the source code repository for Test2-Suite lives at:

https://github.com/Test-More/test-more/

go look, it's giving open source royalty πŸ‘‘


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

🌈 AUTHORS 🌈

  • Chad Granum <exodist@cpan.org>

(yes bestie, maintainer and author, we stan a multi-hyphenate) πŸ’œ


Copyright Chad Granum <exodist@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/


no cap, that's the whole page. every flag, every name, every link, untouched. facts don't change just because the vibe is immaculate πŸ’…

perl v5.44.0 Β· 2026-10-17 β€” and that's the tea, bestie, written up on that date with that perl version, mwah πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms