msvcrt: Fix a test that fails on win95.

This commit is contained in:
Jon Griffiths 2008-05-28 06:01:39 -07:00 committed by Alexandre Julliard
parent 09627c8f61
commit 1484830628
1 changed files with 9 additions and 2 deletions

View File

@ -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);