From 37583d269f066aa8aa04ea18126b188d12257e6d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 29 Apr 1999 22:42:18 +0000 Subject: perl5.005_03 --- gnu/usr.bin/perl/t/lib/fatal.t | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gnu/usr.bin/perl/t/lib/fatal.t (limited to 'gnu/usr.bin/perl/t/lib/fatal.t') diff --git a/gnu/usr.bin/perl/t/lib/fatal.t b/gnu/usr.bin/perl/t/lib/fatal.t new file mode 100644 index 00000000000..fb3757f5cda --- /dev/null +++ b/gnu/usr.bin/perl/t/lib/fatal.t @@ -0,0 +1,27 @@ +#!./perl -w + +BEGIN { + chdir 't' if -d 't'; + unshift @INC, '../lib'; + print "1..9\n"; +} + +use strict; +use Fatal qw(open); + +my $i = 1; +eval { open FOO, ') =~ m|^#!./perl|; + print "not " if $@; + print "ok $i\n"; ++$i; + close FOO; +} -- cgit v1.2.3