mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 07:36:35 +00:00
msvcrt/tests: Fix the %n format test for Vista.
This commit is contained in:
parent
525e30e6b7
commit
3e78cca50c
|
@ -390,9 +390,18 @@ static void test_sprintf( void )
|
|||
format = "asdf%n";
|
||||
x = 0;
|
||||
r = sprintf(buffer, format, &x );
|
||||
if (r == -1)
|
||||
{
|
||||
/* %n format is disabled by default on vista */
|
||||
/* FIXME: should test with _set_printf_count_output */
|
||||
ok(x == 0, "should not write to x: %d\n", x);
|
||||
}
|
||||
else
|
||||
{
|
||||
ok(x == 4, "should write to x: %d\n", x);
|
||||
ok(!strcmp(buffer,"asdf"), "failed\n");
|
||||
ok( r==4, "return count wrong: %d\n", r);
|
||||
}
|
||||
|
||||
format = "%-1d";
|
||||
r = sprintf(buffer, format,2);
|
||||
|
|
Loading…
Reference in a new issue