Add ARM files
[dh-make-perl] / dev / arm / libtest-harness-perl / libtest-harness-perl-3.12 / t / lib / NoFork.pm
diff --git a/dev/arm/libtest-harness-perl/libtest-harness-perl-3.12/t/lib/NoFork.pm b/dev/arm/libtest-harness-perl/libtest-harness-perl-3.12/t/lib/NoFork.pm
new file mode 100644 (file)
index 0000000..0225e96
--- /dev/null
@@ -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