svn commit: r313379 - head/lib/libc/tests/stdio

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Tue Feb 7 05:42:29 UTC 2017


> On Feb 6, 2017, at 21:39, Ngie Cooper <ngie at FreeBSD.org> wrote:
> 
> Author: ngie
> Date: Tue Feb  7 05:39:00 2017
> New Revision: 313379
> URL: https://svnweb.freebsd.org/changeset/base/313379
> 
> Log:
>  Expect :int_within_limits to fail when ptrdiff_t/*intmax_t differ in base type
> 
>  The %t{d,u} (ptrdiff_t) tests fail for the following reasons:
>  - ptrdiff_t is by definition int32_t on !LP64 architectures and int64_t on
>    LP64 architectures.
>  - intmax_t is by definition fixed to int64_t on all architectures.
>  - Some of the code in lib/libc/stdio/... is promoting ptrdiff_t to *intmax_t
>    when parsing/representing the value.

For the sake of brevity, this fixes the test on arm/i386/mips.
Cheers,
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170206/73a75be1/attachment.sig>


More information about the svn-src-head mailing list