X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsigtrap.t;h=2d5683fe9e97d07fd044ef790ba0b32eba3688a9;hb=4bd7b839c96352aa075f714f4c1aaa963c29018e;hp=80cee20c5fe1be2820e5b71d6e577740523ac139;hpb=d1b7517499e3d0b728e5d962307954b425a8d95f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/sigtrap.t b/lib/sigtrap.t index 80cee20..2d5683f 100644 --- a/lib/sigtrap.t +++ b/lib/sigtrap.t @@ -8,9 +8,7 @@ BEGIN { use strict; use Config; -my $can_catch_kill = 0; - -use Test::More tests => 18; +use Test::More tests => 15; use_ok( 'sigtrap' ); @@ -69,19 +67,6 @@ like( $out->read, qr/^Installing handler/, 'does it talk with $Verbose set?' ); eval { sigtrap::handler_die('FAKE') }; like( $@, qr/^Caught a SIGFAKE/, 'does handler_die() croak?' ); -SKIP: { - skip( 'kill not implemented', 3) unless $can_catch_kill and - $Config{sig_name} =~ 'ABRT'; - - $out = tie *STDERR, 'TieOut'; - my $line = __LINE__ + 1; - eval { sigtrap::handler_traceback('kudra') }; - is( $@, '', 'handler_traceback() should not die' ); - my $trace = $out->read(); - like( $trace, qr/^Caught a SIGkudra/, 'check traceback message' ); - like( $trace, qr/eval.+sigtrap.t.+$line/, 'check trace in traceback' ); -} # end of SKIP - package TieOut; sub TIEHANDLE {