Hugh McMaster : msvcrt/tests: Add more tests for _vsnwprintf.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 7 17:15:37 CST 2015
Module: wine
Branch: master
Commit: d999fd0d11ecf73ca38fdc35029f216d3852e924
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d999fd0d11ecf73ca38fdc35029f216d3852e924
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Tue Jan 6 23:07:16 2015 +1100
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 829b2e0..0606c25 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, ...)
More information about the wine-cvs
mailing list