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:
32a6097
)
Make cproto.t more stringent
author
Father Chrysostomos
<sprout@cpan.org>
Sun, 22 Apr 2012 01:30:35 +0000
(18:30 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Tue, 22 May 2012 04:30:21 +0000
(21:30 -0700)
It was allowing prototype() to return undef where an empty string
was expected.
t/op/cproto.t
patch
|
blob
|
history
diff --git
a/t/op/cproto.t
b/t/op/cproto.t
index
8870df8
..
8727897
100644
(file)
--- a/
t/op/cproto.t
+++ b/
t/op/cproto.t
@@
-20,7
+20,10
@@
while (<DATA>) {
like( $@, qr/Can't find an opnumber for/, $keyword );
}
else {
- is( "(".prototype("CORE::".$keyword).")", $proto, $keyword );
+ is(
+ "(".(prototype("CORE::".$keyword) // 'undef').")", $proto,
+ $keyword
+ );
}
}