diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-23 05:00:55 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-23 05:00:55 +0000 |
commit | a9ef352ac26829339bf17aa20568b3bde2fb1dd0 (patch) | |
tree | 54b04807040fe503636ae6878863bd59d2b058ee /t | |
parent | de030af3419d6a4e465a5bde7cc2bada20a15fe8 (diff) | |
download | perl-a9ef352ac26829339bf17aa20568b3bde2fb1dd0.tar.gz |
remove redundant part of change#1169 superseded by change#2061;
avoid "future reserved word" warning on prototypical bearwords
p4raw-link: @2061 on //depot/perl: bf8481137c02593eb36f8d0e234a2ec41a1c92e4
p4raw-link: @1169 on //depot/perl: 2a841d1398ee9bbf30a942905192cc2591b3e92a
p4raw-id: //depot/perl@3446
Diffstat (limited to 't')
-rwxr-xr-x | t/lib/fatal.t | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/t/lib/fatal.t b/t/lib/fatal.t index fb3757f5cd..019265899a 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..9\n"; + print "1..13\n"; } use strict; -use Fatal qw(open); +use Fatal qw(open close); my $i = 1; eval { open FOO, '<lkjqweriuapofukndajsdlfjnvcvn' }; @@ -20,8 +20,9 @@ for ('$foo', "'$foo'", "*$foo", "\\*$foo") { print "not " if $@; print "ok $i\n"; ++$i; - print "not " unless scalar(<FOO>) =~ m|^#!./perl|; + print "not " if $@ or scalar(<$foo>) !~ m|^#!./perl|; + print "ok $i\n"; ++$i; + eval qq{ close FOO }; print "not " if $@; print "ok $i\n"; ++$i; - close FOO; } |