summaryrefslogtreecommitdiff
path: root/t/op/ref.t
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2009-08-15 14:27:09 -0500
committerCraig A. Berry <craigberry@mac.com>2009-08-15 14:27:09 -0500
commit54c717c31383ee341b51465df1a84524ff7245b5 (patch)
tree186292de10535cefbcbcb9417a1b06017f94c1ea /t/op/ref.t
parente13751452f8f5397a445636efcdb6e48c40a2ea9 (diff)
downloadperl-54c717c31383ee341b51465df1a84524ff7245b5.tar.gz
Suppress system messages when op/ref.t calls die on VMS.
Diffstat (limited to 't/op/ref.t')
-rw-r--r--t/op/ref.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/op/ref.t b/t/op/ref.t
index 9ef7b7adfc..a98da6e5a2 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) { } }'), "");