projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69577e
)
require_errors.t: Test <> error
author
Father Chrysostomos
<sprout@cpan.org>
Thu, 3 May 2012 03:37:12 +0000
(20:37 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Tue, 22 May 2012 04:39:20 +0000
(21:39 -0700)
t/op/require_errors.t
patch
|
blob
|
history
diff --git
a/t/op/require_errors.t
b/t/op/require_errors.t
index
0b32c0c
..
8f5a26c
100644
(file)
--- a/
t/op/require_errors.t
+++ b/
t/op/require_errors.t
@@
-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?)