diff options
author | Zefram <zefram@fysh.org> | 2012-02-02 16:07:10 +0000 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2012-02-02 16:07:10 +0000 |
commit | 879b0cab8575cdc155c45c42eb82075648761936 (patch) | |
tree | 81bb2870c1a54c3d91fc83ad2107a89ec6d8f4dd /t | |
parent | 62e90759156bee3f2bcbf1ac6fd055aeab81b9e4 (diff) | |
download | perl-879b0cab8575cdc155c45c42eb82075648761936.tar.gz |
make Carp messages match die properly
Add dot to end of message from Carp, to match the formatting from
CORE::die. The stack trace, coming after the message, is unchanged.
Diffstat (limited to 't')
-rw-r--r-- | t/lib/warnings/2use | 2 | ||||
-rw-r--r-- | t/lib/warnings/9enabled | 64 |
2 files changed, 33 insertions, 33 deletions
diff --git a/t/lib/warnings/2use b/t/lib/warnings/2use index eef0f3ffec..e5a8103b81 100644 --- a/t/lib/warnings/2use +++ b/t/lib/warnings/2use @@ -8,7 +8,7 @@ __END__ # check illegal category is caught use warnings 'this-should-never-be-a-warning-category' ; EXPECT -Unknown warnings category 'this-should-never-be-a-warning-category' at - line 3 +Unknown warnings category 'this-should-never-be-a-warning-category' at - line 3. BEGIN failed--compilation aborted at - line 3. ######## diff --git a/t/lib/warnings/9enabled b/t/lib/warnings/9enabled index 68b0a27da3..60b7c48da3 100644 --- a/t/lib/warnings/9enabled +++ b/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,19 @@ 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 @@ -1195,8 +1195,8 @@ use abc52; use warnings("abc52", "abc52::bar"); abc52::check() ; EXPECT -hello at - line 3 -hello bar at - line 3 +hello at - line 3. +hello bar at - line 3. ######## --FILE-- |