From: Craig A. Berry Date: Sat, 15 Aug 2009 19:27:09 +0000 (-0500) Subject: Suppress system messages when op/ref.t calls die on VMS. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=54c717c31383ee341b51465df1a84524ff7245b5;p=p5sagit%2Fp5-mst-13.2.git Suppress system messages when op/ref.t calls die on VMS. --- diff --git a/t/op/ref.t b/t/op/ref.t index 9ef7b7a..a98da6e 100644 --- a/t/op/ref.t +++ b/t/op/ref.t @@ -588,9 +588,10 @@ ok (!eval { $rpvbm->foo }, 'PVBM is not an object'); is( runperl(stderr => 1, prog => 'map eval qq(exit),1 for 1'), ""); is( runperl(stderr => 1, prog => 'eval { for (1) { map { die } 2 } };'), ""); is( runperl(stderr => 1, prog => 'for (125) { map { exit } (213)}'), ""); -is( runperl(stderr => 1, prog => 'map die,4 for 3'), "Died at -e line 1.\n"); -is( runperl(stderr => 1, prog => 'grep die,4 for 3'), "Died at -e line 1.\n"); -is( runperl(stderr => 1, prog => 'for $a (3) {@b=sort {die} 4,5}'), "Died at -e line 1.\n"); +my $hushed = $^O eq 'VMS' ? 'use vmsish qw(hushed);' : ''; +is( runperl(stderr => 1, prog => $hushed . 'map die,4 for 3'), "Died at -e line 1.\n"); +is( runperl(stderr => 1, prog => $hushed . 'grep die,4 for 3'), "Died at -e line 1.\n"); +is( runperl(stderr => 1, prog => $hushed . 'for $a (3) {@b=sort {die} 4,5}'), "Died at -e line 1.\n"); # bug 57564 is( runperl(stderr => 1, prog => 'my $i;for $i (1) { for $i (2) { } }'), "");