mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CRT_APITEST]
Fix broken test. svn path=/trunk/; revision=57208
This commit is contained in:
parent
55e8f7ae69
commit
5666d93992
1 changed files with 3 additions and 2 deletions
|
@ -16,13 +16,14 @@ static void call_varargs(int expected_ret, LPCWSTR formatString, ...)
|
|||
/* Test the basic functionality */
|
||||
va_start(args, formatString);
|
||||
ret = _vscwprintf(formatString, args);
|
||||
ok(expected_ret == ret, "Test failed: expected %i, got %i.\n", expected_ret, ret);
|
||||
ok(expected_ret == ret, "expected %i, got %i.\n", expected_ret, ret);
|
||||
}
|
||||
|
||||
START_TEST(_vscwprintf)
|
||||
{
|
||||
/* Lesson of the day: don't mix wide and ansi char */
|
||||
call_varargs(19, L"%s world!", "hello");
|
||||
/* Lesson of the week: don't ignore the lesson of the day */
|
||||
call_varargs(12, L"%hs world!", "hello");
|
||||
call_varargs(12, L"%s world!", L"hello");
|
||||
call_varargs(17, L"Jack ate %u pies", 100);
|
||||
/* Do not test NULL argument. That is verified to SEGV on a */
|
||||
|
|
Loading…
Reference in a new issue