(was Re: Why t/lib/extutils.t is failing ...
[p5sagit/p5-mst-13.2.git] / t / lib / sigaction.t
index 4c9c95c..1815b19 100644 (file)
@@ -43,8 +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($oldaction->{HANDLER} eq (-t STDIN ? 'DEFAULT' : 'IGNORE'))
-  { print "ok 2\n" } else { print "not ok 2\n"}
+if($oldaction->{HANDLER} eq 'DEFAULT' ||
+   $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);