Summary: | Multiple errors in libxo ATF tests on i386 | ||
---|---|---|---|
Product: | Base System | Reporter: | Alan Somers <asomers> |
Component: | bin | Assignee: | Phil Shafer <phil> |
Status: | Closed FIXED | ||
Severity: | Affects Many People | CC: | asomers, i386, marklmi26-fbsd |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | i386 | ||
OS: | Any | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210560 |
Description
Alan Somers
2016-06-16 17:03:33 UTC
$ uname -a FreeBSD alans-fbsd-head-i386.eng.sldomain.com 11.0-ALPHA3 FreeBSD 11.0-ALPHA3 #0 r301815: Sat Jun 11 00:55:35 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 Turns out the test driver was using "%ju" and not casting the arguments. Fix is: diff --git a/tests/core/test_02.c b/tests/core/test_02.c index 9a02680..cf98d34 100644 --- a/tests/core/test_02.c +++ b/tests/core/test_02.c @@ -70,7 +70,7 @@ main (int argc, char **argv) xo_emit(" {:lines/%7ju} {:words/%7ju} " "{:characters/%7ju} {d:filename/%s}\n", - 20, 30, 40, "file"); + (uintmax_t) 20, (uintmax_t) 30, (uintmax_t) 40, "file"); int i; for (i = 0; i < 5; i++) The fix is in github. I'll spin a release and then import it to freebsd. Thanks, Phil *** Bug 210560 has been marked as a duplicate of this bug. *** Fixed by r302321 r302321 | ngie | 2016-07-02 19:35:27 -0600 (Sat, 02 Jul 2016) | 13 lines Update libxo to 0.6.3 This fixes the 02 testcases on i386 (at least), and may fix the testcases in general on 32-bit platforms Differential Revision: https://reviews.freebsd.org/D7052 Approved by: phil (maintainer) Approved by: re (gjb) Reported by: asomers Reviewed by: phil Submitted by: phil Sponsored by: EMC / Isilon Storage Division |