On Wed, Feb 12, 2014 at 6:37 AM, Tom Browder <[email protected]> wrote:
> On Wed, Feb 12, 2014 at 2:24 AM, Christopher Sean Morrison
> <[email protected]> wrote:
>> Tom,
>>
>> On a related note, I get a failure on test 66 even after the revert back to
>> %d,
>> so you seem to have exposed another consistency issue as well. Testing
>> printf directly, I get:
>
> Hm, I don't know why I didn't, but 'I'm checking it. I'll add another
> test that uses a number so the padding will be tested.
>
> I'll report back.
>
Using the following program (and gcc 4.7.2 on Deb 7, 64-bit)
#include <stdio.h>
int
main()
{
printf("testing '%010s'\n", "1");
}
Upon execution I get (different from your results):
testing ' 1'
However, I do get the warning (using -W):
'0' flag used with '%s' gnu_printf format [-Wformat]
But the test still passes in my build (-Werror off).
I haven't fiddled with the BRL-CAD build environment other than to
turn off warnings as errors. Maybe the test directory needs to have a
fixed, consistent environment regardless of the rest of the build,
otherwise it's hard to specify results in cases like this.
[later]
I did a normal debug build and got no problems from the vls_vprintf
tests--all passed ok!
I can't explain our different results.
Best regards,
-Tom
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel