This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
new regression tests for bug ID 20010920.007
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 21 Sep 2001 22:36:54 +0000 (00:36 +0200)
committerAbhijit Menon-Sen <ams@wiw.org>
Fri, 21 Sep 2001 20:05:29 +0000 (20:05 +0000)
Message-Id: <20010921223654.A12742@rafael>

p4raw-id: //depot/perl@12118

t/op/do.t

index 6c26bc4..b70fae1 100755 (executable)
--- a/t/op/do.t
+++ b/t/op/do.t
@@ -16,7 +16,7 @@ sub foo2
     $x;
 }
 
-print "1..18\n";
+print "1..20\n";
 
 $_[0] = "not ok 1\n";
 $result = do foo1("ok 1\n");
@@ -66,6 +66,14 @@ if (open(DO, ">$$.18")) {
 
 do "$$.18";
 
+eval qq{ do qq(a file that does not exist); };
+print "not " if $@;
+print "ok 19\n";
+
+eval qq{ do uc qq(a file that does not exist); };
+print "not " if $@;
+print "ok 20\n";
+
 END {
     1 while unlink("$$.16", "$$.17", "$$.18");
 }