require_errors.t: Test <> error
authorFather Chrysostomos <sprout@cpan.org>
Thu, 3 May 2012 03:37:12 +0000 (20:37 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 04:39:20 +0000 (21:39 -0700)
t/op/require_errors.t

index 0b32c0c..8f5a26c 100644 (file)
@@ -7,7 +7,7 @@ BEGIN {
     require './test.pl';
 }
 
-plan(tests => 3);
+plan(tests => 4);
 
 my $nonfile = tempfile();
 
@@ -31,6 +31,9 @@ eval {
 
 like $@, qr/^Can't locate $nonfile\.h in \@INC \(change \.h to \.ph maybe\?\) \(did you run h2ph\?\) \(\@INC contains: @INC\) at/;
 
+eval 'require <foom>';
+like $@, qr/^<> should be quotes at /, 'require <> error';
+
 # I can't see how to test the EMFILE case
 # I can't see how to test the case of not displaying @INC in the message.
 # (and does that only happen on VMS?)