From: Jarkko Hietaniemi Date: Wed, 14 Mar 2001 13:35:21 +0000 (+0000) Subject: Tweaked a tweak from H.Merijn Brand on the sigaction test. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=521126c3fedddba92be66cb8ba2a79ad25c9dc95;p=p5sagit%2Fp5-mst-13.2.git Tweaked a tweak from H.Merijn Brand on the sigaction test. p4raw-id: //depot/perl@9153 --- diff --git a/t/lib/sigaction.t b/t/lib/sigaction.t index 4c9c95c..8200a6f 100644 --- a/t/lib/sigaction.t +++ b/t/lib/sigaction.t @@ -43,7 +43,8 @@ my $oldaction=POSIX::SigAction->new('::bar', new POSIX::SigSet(), 0); if($bad) { print "not ok 1\n" } else { print "ok 1\n"} } -if($oldaction->{HANDLER} eq (-t STDIN ? 'DEFAULT' : 'IGNORE')) +if((-t STDIN && $oldaction->{HANDLER} eq 'IGNORE') || + $oldaction->{HANDLER} eq 'DEFAULT') { print "ok 2\n" } else { print "not ok 2\n"} print $SIG{HUP} eq '::foo' ? "ok 3\n" : "not ok 3\n";