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 π
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