diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-08 13:57:10 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-08 13:57:10 +0000 |
commit | 3a33ea64e25839579a7894359d0f3866dce313cf (patch) | |
tree | ba8d00c621dc7c7ae5686d032426af30b1a4f366 /lib/sigtrap.t | |
parent | 5e687e55fdfb98a4bd0350a4b94b8462049118bf (diff) | |
download | perl-3a33ea64e25839579a7894359d0f3866dce313cf.tar.gz |
Can't figure out what this is testing.
(If it is trying to catch SIGKILL, it should stop
trying because that is by definition impossible.)
p4raw-id: //depot/perl@12361
Diffstat (limited to 'lib/sigtrap.t')
-rw-r--r-- | lib/sigtrap.t | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/sigtrap.t b/lib/sigtrap.t index 80cee20c5f..2d5683fe9e 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 { |