summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/t/lib/warnings/9enabled
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2013-03-25 20:06:16 +0000
committersthen <sthen@openbsd.org>2013-03-25 20:06:16 +0000
commit898184e3e61f9129feb5978fad5a8c6865f00b92 (patch)
tree56f32aefc1eed60b534611007c7856f82697a205 /gnu/usr.bin/perl/t/lib/warnings/9enabled
parentPGSHIFT -> PAGE_SHIFT (diff)
downloadwireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.tar.xz
wireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.zip
import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myself
Diffstat (limited to 'gnu/usr.bin/perl/t/lib/warnings/9enabled')
-rw-r--r--gnu/usr.bin/perl/t/lib/warnings/9enabled78
1 files changed, 48 insertions, 30 deletions
diff --git a/gnu/usr.bin/perl/t/lib/warnings/9enabled b/gnu/usr.bin/perl/t/lib/warnings/9enabled
index a535689bad0..60b7c48da30 100644
--- a/gnu/usr.bin/perl/t/lib/warnings/9enabled
+++ b/gnu/usr.bin/perl/t/lib/warnings/9enabled
@@ -344,8 +344,8 @@ eval {
} ;
print $@ ;
EXPECT
-Usage: warnings::warn([category,] 'message') at - line 5
-Unknown warnings category 'fred' at - line 9
+Usage: warnings::warn([category,] 'message') at - line 5.
+Unknown warnings category 'fred' at - line 9.
########
# check warnings::warnif
@@ -359,8 +359,8 @@ eval {
} ;
print $@ ;
EXPECT
-Usage: warnings::warnif([category,] 'message') at - line 5
-Unknown warnings category 'fred' at - line 9
+Usage: warnings::warnif([category,] 'message') at - line 5.
+Unknown warnings category 'fred' at - line 9.
########
--FILE-- abc18.pm
@@ -373,7 +373,7 @@ use warnings "io" ;
use abc18;
abc18::check() ;
EXPECT
-hello at - line 3
+hello at - line 3.
########
--FILE-- abc19.pm
@@ -386,7 +386,7 @@ use warnings "io" ;
use abc19;
abc19::check() ;
EXPECT
-hello at - line 3
+hello at - line 3.
########
--FILE-- abc20.pm
@@ -402,7 +402,7 @@ eval {
} ;
print "[[$@]]\n";
EXPECT
-hello at - line 4
+hello at - line 4.
[[]]
########
@@ -419,7 +419,7 @@ eval {
} ;
print "[[$@]]\n";
EXPECT
-[[hello at - line 4
+[[hello at - line 4.
]]
########
-W
@@ -463,7 +463,7 @@ use warnings 'syntax' ;
use abc24 ;
abc24::check() ;
EXPECT
-package 'abc24' not registered for warnings at abc24.pm line 4
+package 'abc24' not registered for warnings at abc24.pm line 4.
########
--FILE-- abc25.pm
@@ -478,7 +478,7 @@ use warnings 'syntax' ;
use abc25 ;
abc25::check() ;
EXPECT
-package 'abc25' not registered for warnings at abc25.pm line 4
+package 'abc25' not registered for warnings at abc25.pm line 4.
########
--FILE-- abc26.pm
@@ -493,7 +493,7 @@ use warnings 'syntax' ;
use abc26 ;
abc26::check() ;
EXPECT
-package 'abc26' not registered for warnings at abc26.pm line 4
+package 'abc26' not registered for warnings at abc26.pm line 4.
########
--FILE-- abc27.pm
@@ -652,7 +652,7 @@ use abc34;
use warnings "abc34" ;
abc34::check() ;
EXPECT
-hello at - line 3
+hello at - line 3.
########
--FILE-- abc35.pm
@@ -664,7 +664,7 @@ sub check { warnings::warn("hello") }
use abc35;
abc35::check() ;
EXPECT
-hello at - line 2
+hello at - line 2.
########
--FILE-- abc36.pm
@@ -680,7 +680,7 @@ eval {
} ;
print "[[$@]]\n";
EXPECT
-hello at - line 4
+hello at - line 4.
[[]]
########
@@ -697,7 +697,7 @@ eval {
} ;
print "[[$@]]\n";
EXPECT
-[[hello at - line 4
+[[hello at - line 4.
]]
########
-W
@@ -1005,9 +1005,9 @@ ok1
ok2
ok3
ok4
-my message 1 at - line 3
-my message 2 at - line 3
-my message 3 at - line 3
+my message 1 at - line 3.
+my message 2 at - line 3.
+my message 3 at - line 3.
########
--FILE-- def.pm
@@ -1044,9 +1044,9 @@ ok1
ok2
ok3
ok4
-my message 1 at abc49.pm line 5
-my message 2 at abc49.pm line 5
-my message 3 at abc49.pm line 5
+my message 1 at abc49.pm line 5.
+my message 2 at abc49.pm line 5.
+my message 3 at abc49.pm line 5.
########
--FILE-- def.pm
@@ -1089,8 +1089,8 @@ ok2
ok3
ok4
ok5
-my message 1 at - line 4
-my message 3 at - line 4
+my message 1 at - line 4.
+my message 3 at - line 4.
########
--FILE-- def.pm
@@ -1166,19 +1166,37 @@ ok3
ok4
ok5
ok6
-my message 1 at - line 5
-my message 2 at - line 5
-my message 4 at - line 5
-my message 8 at - line 5
+my message 1 at - line 5.
+my message 2 at - line 5.
+my message 4 at - line 5.
+my message 8 at - line 5.
**
ok1
ok2
ok3
ok4
ok5
-my message 1 at - line 8
-my message 2 at - line 8
-my message 4 at - line 8
+my message 1 at - line 8.
+my message 2 at - line 8.
+my message 4 at - line 8.
+########
+
+--FILE-- abc52.pm
+package abc52 ;
+use warnings::register ('foo', 'bar');
+sub check {
+ warnings::warnif('abc52', "hello");
+ warnings::warnif('abc52::foo', "hello foo");
+ warnings::warnif('abc52::bar', "hello bar");
+}
+1;
+--FILE--
+use abc52;
+use warnings("abc52", "abc52::bar");
+abc52::check() ;
+EXPECT
+hello at - line 3.
+hello bar at - line 3.
########
--FILE--