From: Jarkko Hietaniemi Date: Thu, 15 Mar 2001 13:53:15 +0000 (+0000) Subject: sigaction test condition tweakage. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63478870f61d3f4e0428fe761bb835b4cc010aa6;p=p5sagit%2Fp5-mst-13.2.git sigaction test condition tweakage. p4raw-id: //depot/perl@9166 --- diff --git a/t/lib/sigaction.t b/t/lib/sigaction.t index 8200a6f..8b0a907 100644 --- a/t/lib/sigaction.t +++ b/t/lib/sigaction.t @@ -43,9 +43,9 @@ my $oldaction=POSIX::SigAction->new('::bar', new POSIX::SigSet(), 0); if($bad) { print "not ok 1\n" } else { print "ok 1\n"} } -if((-t STDIN && $oldaction->{HANDLER} eq 'IGNORE') || - $oldaction->{HANDLER} eq 'DEFAULT') - { print "ok 2\n" } else { print "not ok 2\n"} +if($oldaction->{HANDLER} eq 'DEFAULT' || + (! -t STDIN && $oldaction->{HANDLER} eq 'IGNORE')) + { print "ok 2\n" } else { print "not ok 2 # ", $oldaction->{HANDLER}, "\n"} print $SIG{HUP} eq '::foo' ? "ok 3\n" : "not ok 3\n"; sigaction(SIGHUP, $newaction, $oldaction);