Commit 14848306 authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

msvcrt: Fix a test that fails on win95.

parent 09627c8f
......@@ -221,8 +221,15 @@ static void test_sprintf( void )
format = "%I32d";
r = sprintf(buffer,format,1);
ok(!strcmp(buffer,"1"),"I32d failed\n");
ok( r==1, "return count wrong\n");
if (r == 1)
{
ok(!strcmp(buffer,"1"),"I32d failed, got '%s'\n",buffer);
}
else
{
/* Older versions don't grok I32 format */
ok(r == 4 && !strcmp(buffer,"I32d"),"I32d failed, got '%s',%d\n",buffer,r);
}
format = "%I64D";
r = sprintf(buffer,format,(LONGLONG)-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment