summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sigtrap.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/sigtrap.t b/lib/sigtrap.t
index 0469a9ac52..30f53398ac 100644
--- a/lib/sigtrap.t
+++ b/lib/sigtrap.t
@@ -57,13 +57,13 @@ $SIG{FAKE} = 'IGNORE';
sigtrap->import('untrapped', 'FAKE');
is( $SIG{FAKE}, 'IGNORE', 'respect existing handler set to IGNORE' );
-fresh_perl_like
- '
- use sigtrap "INT";
- sub { kill "INT", $$ } -> (3)
- ',
- qr/\$ = main::__ANON__\(3\) called/,
- { stderr => 1 },
+unlike
+ runperl(
+ switches => [ '-Msigtrap=INT' ],
+ prog => 'sub { kill q-INT-, $$ } -> (3)',
+ stderr => 1
+ ),
+ qr/Modification of a read-only value/,
"stack-trace does not try to modify read-only arguments"
;