[PATCH-Tests] Make charnames tests non fatal

--=_5m9scbmp8igw
Content-Type: text/plain;
	charset=ISO-8859-1;
	DelSp="Yes";
	format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

When testing with a half build perl I noticed that the charnames test =20
in t/re/pat.t did not fail gracefully.

In my build charnames was not yet (or not correctly) build resulting in:

re/pat.t .. Constant(\N{THAI CHARACTER SARA I}): $^H{charnames} is not =20
defined at re/pat.t line 978, within pattern
Execution of re/pat.t aborted due to compilation errors.
re/pat.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run

Test Summary Report
-------------------
re/pat.t (Wstat: 65280 Tests: 0 Failed: 0)
   Non-zero exit status: 255
   Parse errors: No plan found in TAP output
Files=3D1, Tests=3D0,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.03 cusr  =
=20
0.00 csys =3D  0.04 CPU)
Result: FAIL


=3D> which is not a graceful error message...


The attach patch fixes this by using string eval for the charname tests.
The output now:

re/pat.t .. Failed 4/299 subtests

Test Summary Report
-------------------
re/pat.t (Wstat: 0 Tests: 299 Failed: 4)
   Failed tests:  294-297
Files=3D1, Tests=3D299,  1 wallclock secs ( 0.06 usr  0.01 sys +  0.26 =20
cusr  0.04 csys =3D  0.37 CPU)
Result: FAIL


Best regards,

Bram


--=_5m9scbmp8igw
Content-Type: text/x-diff;
	charset=ISO-8859-1;
	name="0001-Make-charnames-tests-non-fatal.patch"
Content-Disposition: attachment;
	filename="0001-Make-charnames-tests-non-fatal.patch"
Content-Transfer-Encoding: quoted-printable

From 819b28f81d7cd87c4920f1181f907a196394f4b8 Mon Sep 17 00:00:00 2001
From: Bram <p5p@perl.wizbit.be>
Date: Sun, 28 Feb 2010 14:29:06 +0100
Subject: [PATCH] Make charnames tests non fatal

---
 t/re/pat.t |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/t/re/pat.t b/t/re/pat.t
index 40ae52e..51a71fc 100644
--- a/t/re/pat.t
+++ b/t/re/pat.t
@@ -23,7 +23,7 @@ BEGIN {
 }
=20
=20
-plan tests =3D> 297;  # Update this when adding/deleting tests.
+plan tests =3D> 299;  # Update this when adding/deleting tests.
=20
 run_tests() unless caller;
=20
@@ -974,14 +974,21 @@ sub run_tests {
     {
         use charnames ":full";
         local $Message =3D 'Delayed interpolation of \N';
-        my $r1 =3D qr/\N{THAI CHARACTER SARA I}/;
-        my $s1 =3D "\x{E34}\x{E34}\x{E34}\x{E34}";
+        my $r1 =3D "broken";
+        eval q#$r1 =3D qr/\N{THAI CHARACTER SARA I}/; #;
+        isneq($r1, "broken", 'qr/\N{THAI CHARACTER SARA I}/;');
+
+        my $s1 =3D "broken";
+        eval q#$s1 =3D "\x{E34}\x{E34}\x{E34}\x{E34}"; #;
+        isneq($r1, "broken", '$s1 =3D "\x{E34}\x{E34}\x{E34}\x{E34}";');
=20
         # Bug #56444
-        ok $s1 =3D~ /$r1+/, 'my $r1 =3D qr/\N{THAI CHARACTER SARA I}/; my $=
s1 =3D "\x{E34}\x{E34}\x{E34}\x{E34}; $s1 =3D~ /$r1+/';
+        my $ok1 =3D eval q# $s1 =3D~ /$r1+/; #;
+        ok $ok1, 'my $r1 =3D qr/\N{THAI CHARACTER SARA I}/; my $s1 =3D "\x{=
E34}\x{E34}\x{E34}\x{E34}; $s1 =3D~ /$r1+/';
=20
         # Bug #62056
-        ok "${s1}A" =3D~ m/$s1\N{LATIN CAPITAL LETTER A}/, '"${s1}A" =3D~ m=
/$s1\N{LATIN CAPITAL LETTER A}/';
+        my $ok2 =3D eval q# "${s1}A" =3D~ m/$s1\N{LATIN CAPITAL LETTER A}/ =
#;
+        ok $ok2, '"${s1}A" =3D~ m/$s1\N{LATIN CAPITAL LETTER A}/';
=20
         ok "abbbbc" =3D~ m/\N{1}/ && $& eq "a", '"abbbbc" =3D~ m/\N{1}/ && =
$& eq "a"';
         ok "abbbbc" =3D~ m/\N{3,4}/ && $& eq "abbb", '"abbbbc" =3D~ m/\N{3,=
4}/ && $& eq "abbb"';
--=20
1.6.3.2


--=_5m9scbmp8igw--

0
p5p
2/28/2010 1:33:49 PM
perl.perl5.porters 48287 articles. 1 followers. Follow

0 Replies
644 Views

Similar Articles

[PageSpeed] 45

Reply:

Similar Artilces:

test test test test test test
test test test test test test test test test test test ...

TEST TEST TEST TEST TEST
from forums 11:55 AM PST 02/12/2008 ...

test test test test
what is the deal with these bizarre "test updates"? i did a couple, but they just keep coming. On Feb 20, 7:08=A0pm, inspector.arc...@gmail.com wrote: > what is the deal with these bizarre "test updates"? i did a couple, > but they just keep coming. what? my email is accessible?! what the hell are you thinking? please delete these posts and remove my email address from public access. unbelievable! ...

test test test test
OE is a pain in my ass, test test test -- http://www.spywareinfo.com PGP Public key at http://www.spywareinfo.com/Mike_Healan.txt ...

superreview granted: [Bug 431453] Make browser mochitests pass on SeaMonkey : [Attachment 318695] patch: make a few tests FF-only or non-SM, fix sanitizer tests
neil@parkwaycc.co.uk <neil@httl.net> has granted Robert Kaiser <kairo@kairo.at>'s request for superreview: Bug 431453: Make browser mochitests pass on SeaMonkey https://bugzilla.mozilla.org/show_bug.cgi?id=431453 Attachment 318695: patch: make a few tests FF-only or non-SM, fix sanitizer tests https://bugzilla.mozilla.org/attachment.cgi?id=318695&action=edit ...

superreview requested: [Bug 431453] Make browser mochitests pass on SeaMonkey : [Attachment 318695] patch: make a few tests FF-only or non-SM, fix sanitizer tests
Robert Kaiser <kairo@kairo.at> has asked neil@parkwaycc.co.uk <neil@httl.net> for superreview: Bug 431453: Make browser mochitests pass on SeaMonkey https://bugzilla.mozilla.org/show_bug.cgi?id=431453 Attachment 318695: patch: make a few tests FF-only or non-SM, fix sanitizer tests https://bugzilla.mozilla.org/attachment.cgi?id=318695&action=edit ------- Additional Comments from Robert Kaiser <kairo@kairo.at> This patch makes the tests that use Firefox-only features be installed for Firefox only, the download manager tests to be excluded for SeaMonkey just li...

test test test
test test MJB Law Office wrote: > test test Is this legal? propman wrote: > MJB Law Office wrote: >> test test > > Is this legal? > Hey, propman, the post is from a law firm, so it must be legal! Right?? Daniel Daniel wrote: > propman wrote: >> MJB Law Office wrote: >>> test test >> >> Is this legal? >> > > Hey, propman, the post is from a law firm, so it must be legal! Right?? Mr. Bumble replies "If the law supposes that� the law is a ass�a idiot. If that�s the eye of the law, the law is...

test test test
test test test test for test "Praveen Hari" <phari@sybase.com> wrote in message news:enLr8dDFDHA.310@forums-1-dub... > test test test > > > ...

test, test, test
test ...

Test Test Test
Name: Gervase Markham Email: gervatmozilladotorg Product: Firefox Summary: Test Test Test Comments: Testing Hendrix. Gerv Browser Details: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9) Gecko/2008052912 Firefox/3.0 From URL: http://localhost/src/hendrix/ ...

test test test
test test test ...

testing and testing and testing :)
and again :) Carsten Book wrote: > and again :) Testing is fun! Stephen Donner wrote: > Carsten Book wrote: >> and again :) > > Testing is fun! test Stephen Donner wrote: > Stephen Donner wrote: >> Carsten Book wrote: >>> and again :) >> >> Testing is fun! > test testing too :p ...

[BUG] and [PATCH]: Failures in 5 tests during 'make test'; partially patched
--Apple-Mail-24--179573517 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I got errors in 5 different tests running 'make test' this morning on a tree freshly updated from trunk. An excerpt from 'make test' output is attached. Set aside the failure in t/perl/Parrot_Distribution.t; that's well known. Here's the output of 'prove -v' on the other 4 files: [parrot] 526 $ prove -v t/codingstd/cuddled_else.t \ > t/codingstd/trailing_space.t \ > t/pmc/metaclass.t \ > t/pmc/...

Test TEst TEst Test for Pre-DRE
Test TEst TEst Test for Pre-DRE Test TEst TEst Test for Pre-DRE Test TEst TEst Test for Pre-DRE Test TEst TEst Test for Pre-DRE Test TEst TEst Test for Pre-DRE ...

Web resources about - [PATCH-Tests] Make charnames tests non fatal - perl.perl5.porters

Batman Arkham Knight PC Patch Gameplay & Performance Test - YouTube
● Get PC Games: https://www.g2a.com/r/gk346 ● Buy Batman Arkham Knight: https://www.g2a.com/r/batmanngk346 ● More Gameplays: https://www.you ...

Patch Test - Imgur
Just found out I'm allergic to nickel and copper. Unfortunately I spent $3400 less than 6 months ago to get a tooth implant which has nickel. ...

‘Dragon Age: Inquisition’ Beta Program Extended To Test Patch 7, Apply Now
Initially created to test Dragon Age: Inquisition ‘s Patch 5 before launching the additional content on consoles, BioWare’s PC beta program will ...

Microsoft engineer: 'Definitely problems' with test process after crippling Windows patch
A week after Microsoft pulled a Patch Tuesday update that crippled some Windows 7 PCs, the company has yet to provide a working fix for either ...

Painless microneedle patch could test for TB
Researchers test a chitin microneedle patch on human skin. (Credit: Marco Rolandi/UW) Today, one of the standard tests for tuberculosis involves ...

Microsoft engineer: 'Definitely problems' with test process after crippling Windows patch
A week after Microsoft pulled a Patch Tuesday update that crippled some Windows 7 PCs, the company has yet to provide a working fix for either ...

DROID Turbo Receiving Soak Test, Likely a Stagefright Patch
DROID Turbo owners will soon receive an update, as invites for a soak test are beginning to roll out from Motorola . No exact details have been ...

Microsoft will beta test a patch for the still-busted 'Halo' collection
Microsoft will beta test a patch for the still-busted 'Halo' collection

On the road to Windows 10: Nvidia driver tests KB 3073930 patch blocker
Some are pushing a handy troubleshooter to block the forced Win10 update with Nvidia 353.54 driver but it doesn’t work the way you think

Remember how Microsoft was setting a beta test for a patch that would hopefully resolve many of the
Remember how Microsoft was setting a beta test for a patch that would hopefully resolve many of the problems plaguing Halo: The Master Chief ...

Resources last updated: 1/23/2016 11:12:05 AM