develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #112820] t/op/sprintf.t fails one test on FreeBSD 4.6

From:
Father Chrysostomos via RT
Date:
July 5, 2012 16:05
Subject:
[perl #112820] t/op/sprintf.t fails one test on FreeBSD 4.6
Message ID:
rt-3.6.HEAD-3044-1341529547-1397.112820-15-0@perl.org
On Tue May 08 13:47:10 2012, Mr. Clark wrote:
> t/op/sprintf.t fails one test on FreeBSD 4.6
> *Everything* else passes. This is a pleasant surprise.
> 
> Patch adds a skip for FreeBSD 4, and should not skip on FreeBSD 5 and
> later.
> Tested on FreeBSD 7 too. Due to the way versions don't map to real
> numbers,
> 4.6 > 4.11, whereas 4.6 <= 4.9 (and 4.9 <= 4.9, 4.10 <= 4.9 and 4.11
> <= 4.9)
> so the skip skips for all releases of FreeBSD 4.
> 
> diff --git a/t/op/sprintf.t b/t/op/sprintf.t
> index 9c942b4..34086c8 100644
> --- a/t/op/sprintf.t
> +++ b/t/op/sprintf.t
> @@ -399,7 +399,7 @@ __END__
>  > %.0g<     >[]<          > 0 MISSING<
>  >%.2g<      >[]<          >0 MISSING<
>  >%.2gC<      >[]<          >0C MISSING<
> ->%.0g<      >-0.0<        >-0<		   >C99 standard mandates minus sign
> but C89 does not skip: MSWin32 VMS hpux:10.20 openbsd netbsd:1.5 irix
> darwin<
> +>%.0g<      >-0.0<        >-0<		   >C99 standard mandates minus sign
> but C89 does not skip: MSWin32 VMS hpux:10.20 openbsd netbsd:1.5 irix
> darwin freebsd:4.9<
>  >%.0g<      >12345.6789<  >1e+04<
>  >%#.0g<     >12345.6789<  >1.e+04<
>  >%.2g<      >12345.6789<  >1.2e+04<

Thank you.  Applied as f60cb31.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=112820



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About