diff options
author | Charles Bailey <bailey@newman.upenn.edu> | 2000-03-13 02:31:44 +0000 |
---|---|---|
committer | bailey <bailey@newman.upenn.edu> | 2000-03-13 02:31:44 +0000 |
commit | a32e82edde068d007913f66170d881838f070558 (patch) | |
tree | b263f210818e8a9977e4a12080386f6af4a33282 /t/lib/fatal.t | |
parent | fd7385b97d6c0b537b272f194ad6f88a70d3dd39 (diff) | |
parent | 24ef60581ee187bb6d4388e124dfc34b8cf0b663 (diff) | |
download | perl-a32e82edde068d007913f66170d881838f070558.tar.gz |
Resync with mainline post RC1
p4raw-id: //depot/vmsperl@5690
Diffstat (limited to 't/lib/fatal.t')
-rwxr-xr-x | t/lib/fatal.t | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/t/lib/fatal.t b/t/lib/fatal.t index 019265899a..4013fbd371 100755 --- a/t/lib/fatal.t +++ b/t/lib/fatal.t @@ -3,11 +3,11 @@ BEGIN { chdir 't' if -d 't'; unshift @INC, '../lib'; - print "1..13\n"; + print "1..15\n"; } use strict; -use Fatal qw(open close); +use Fatal qw(open close :void opendir); my $i = 1; eval { open FOO, '<lkjqweriuapofukndajsdlfjnvcvn' }; @@ -26,3 +26,11 @@ for ('$foo', "'$foo'", "*$foo", "\\*$foo") { print "not " if $@; print "ok $i\n"; ++$i; } + +eval { opendir FOO, 'lkjqweriuapofukndajsdlfjnvcvn' }; +print "not " unless $@ =~ /^Can't open/; +print "ok $i\n"; ++$i; + +eval { my $a = opendir FOO, 'lkjqweriuapofukndajsdlfjnvcvn' }; +print "not " if $@ =~ /^Can't open/; +print "ok $i\n"; ++$i; |