Message-Id: <
20010313184043.BFFC.H.M.BRAND@hccnet.nl>
If the test is run non-interactively the default handler
is different.
p4raw-id: //depot/perl@9130
if($bad) { print "not ok 1\n" } else { print "ok 1\n"}
}
-if($oldaction->{HANDLER} eq 'DEFAULT')
+if($oldaction->{HANDLER} eq (-t STDIN ? 'DEFAULT' : 'IGNORE'))
{ print "ok 2\n" } else { print "not ok 2\n"}
print $SIG{HUP} eq '::foo' ? "ok 3\n" : "not ok 3\n";