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:
77ccfae
)
Test for [perl #87726] (warning from diagnostics.pm under -w)
author
Father Chrysostomos
<sprout@cpan.org>
Wed, 6 Apr 2011 01:00:14 +0000
(18:00 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Mon, 18 Jul 2011 21:34:14 +0000
(14:34 -0700)
lib/diagnostics.t
patch
|
blob
|
history
diff --git
a/lib/diagnostics.t
b/lib/diagnostics.t
index
1dc8ec3
..
b5db34d
100644
(file)
--- a/
lib/diagnostics.t
+++ b/
lib/diagnostics.t
@@
-1,13
+1,18
@@
-#!./perl
+#!./perl
-w
BEGIN {
chdir '..' if -d '../pod' && -d '../t';
@INC = 'lib';
}
-use Test::More tests =>
7
;
+use Test::More tests =>
8
;
-BEGIN { use_ok('diagnostics') }
+BEGIN {
+ my $w;
+ $SIG{__WARN__} = sub { $w = shift };
+ use_ok('diagnostics');
+ is $w, undef, 'no warnings when loading diagnostics.pm';
+}
require base;