Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jun 2016 01:35:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-i386@FreeBSD.org
Subject:   [Bug 210326] Multiple errors in libxo ATF tests on i386
Message-ID:  <bug-210326-10-6BUdbWrYxT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210326-10@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210326-10@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210326

--- Comment #2 from Phil Shafer <phil@freebsd.org> ---
Turns out the test driver was using "%ju" and not casting the arguments.  F=
ix
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 =3D 0; i < 5; i++)

The fix is in github.  I'll spin a release and then import it to freebsd.

Thanks,
 Phil

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210326-10-6BUdbWrYxT>