#!./perl # Tests for signal emulation BEGIN { chdir 't' if -d 't'; @INC = '../lib'; # only used for skip_all, the forking confuses test.pl require "./test.pl"; } BEGIN { unless ($^O =~ /^MSWin/) { skip_all('windows specific test'); } } skip_all("requires compilation with the fork emulation") unless $Config{'d_pseudofork'}; ++$|; # manual test counting because the forks confuse test.pl print "1..4\n"; use Config; # find a safe signal, the implementation shouldn't be doing anything # funky with NUMdd signals my ($sig) = grep /^NUM/, split ' ', $Config{sig_name}; # otherwise, hope CONT is safe $sig ||= "CONT"; SKIP: { # perl #85104 use warnings; my $pid = fork; unless (defined $pid) { print <