diff options
Diffstat (limited to 'ext/Test/Harness/t/lib/NoFork.pm')
-rw-r--r-- | ext/Test/Harness/t/lib/NoFork.pm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/Test/Harness/t/lib/NoFork.pm b/ext/Test/Harness/t/lib/NoFork.pm new file mode 100644 index 0000000000..0225e9628d --- /dev/null +++ b/ext/Test/Harness/t/lib/NoFork.pm @@ -0,0 +1,21 @@ +package NoFork; + +BEGIN { + *CORE::GLOBAL::fork = sub { die "you should not fork" }; +} +use Config; +tied(%Config)->{d_fork} = 0; # blatant lie + +=begin TEST + +Assuming not to much chdir: + + PERL5OPT='-It/lib -MNoFork' perl -Ilib bin/prove -r t + +=end TEST + +=cut + +1; + +# vim:ts=4:sw=4:et:sta |