From d999fd0d11ecf73ca38fdc35029f216d3852e924 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Tue, 6 Jan 2015 23:07:16 +1100 Subject: [PATCH] msvcrt/tests: Add more tests for _vsnwprintf. --- dlls/msvcrt/tests/printf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c index 829b2e0501b..0606c257c71 100644 --- a/dlls/msvcrt/tests/printf.c +++ b/dlls/msvcrt/tests/printf.c @@ -1127,6 +1127,12 @@ static void test_vsnwprintf(void) ok( ret == 11, "got %d expected 11\n", ret ); WideCharToMultiByte( CP_ACP, 0, str, -1, buf, sizeof(buf), NULL, NULL ); ok( !strcmp(buf, "onetwothree"), "got %s expected 'onetwothree'\n", buf ); + + ret = _vsnwprintf_wrapper( str, 0, format, one, two, three ); + ok( ret == -1, "got %d, expected -1\n", ret ); + + ret = _vsnwprintf_wrapper( NULL, 0, format, one, two, three ); + ok( ret == 11 || broken(ret == -1 /* Win2k */), "got %d, expected 11\n", ret ); } static int __cdecl vswprintf_wrapper(wchar_t *str, const wchar_t *format, ...) -- 2.11.4.GIT