Re: You can call me code elf (was: [RELEASE CANDIDATE] Apache-Test-1.34 RC1)

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.httpd.test.devel,gmane.comp.java.ofbiz.devel,gmane.comp.apache.mod-perl
Message-ID <201012301847.20939.torsten.foertsch__37549.0257669755$1293731282$gmane$org@gmx.net>
On Wednesday, December 29, 2010 04:19:05 Fred Moyer wrote:
> All ok on Darwin/5.12.2, got a failure on Linux/5.8.8/2.2.9
> 
> t/import.t ............... 1/47 Use of uninitialized value in open at
> /home/phred/dev/perl/lib/5.8.8/Test/Builder.pm line 1599.
> # Test 46 got: "1..17\n# Using Apache/Test.pm version 1.34\nok 1 -
> hugo is not erwin\n" (t/import.t at line 136)
> #    Expected: "(?m-xis:^1\\.\\.17$)" (planned)
> #  t/import.t line 136 is: Test::skip $pio, $output, qr/^1\.\.17$/m,
> 'planned'; t/import.t ............... Failed 1/47 subtests

That's the old perl version. Could you please retest revision 1053949 (or 
later).

The following command shows the bug:

$ perl -Mstrict -e 'my $re=qr/^a$/m; printf "%vd: %s\n", $^V, "a\nx"=~$re ? 
"match" : "no match"'

5.12.1: match
5.8.8: no match

Perl 5.8.8 forgets about the m-flag.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.