Akihiro Sagawa : user32/tests: Add wsprintfA %C conversion tests.

Alexandre Julliard julliard at winehq.org
Wed Feb 19 15:35:48 CST 2020


Module: wine
Branch: master
Commit: 3b5619a8f41be2e59d542993b75574ecee5dd49a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3b5619a8f41be2e59d542993b75574ecee5dd49a

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Wed Feb 19 23:21:33 2020 +0900

user32/tests: Add wsprintfA %C conversion tests.

Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/wsprintf.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/user32/tests/wsprintf.c b/dlls/user32/tests/wsprintf.c
index 3aae012cec..84dc0eb39b 100644
--- a/dlls/user32/tests/wsprintf.c
+++ b/dlls/user32/tests/wsprintf.c
@@ -70,6 +70,9 @@ static void wsprintfATest(void)
         { fffeW, "%.2S", "?",     1 },
         { wineW, "%.2S", "??",    2 },
         { star,  "%.1s", partial, 1 },
+        { (void *)0x2606, "%2C",  star,    2 },
+        { (void *)0xfffd, "%C",   "?",     1 },
+        { (void *)0xe199, "%2c",  " \x99", 2 },
     };
     CPINFO cpinfo;
     unsigned int i;
@@ -108,10 +111,12 @@ static void wsprintfATest(void)
         memset(buf, 0x11, sizeof(buf));
         rc = wsprintfA(buf, testcase[i].fmt, testcase[i].input);
 
+        todo_wine_if( i == 7 )
         ok(rc == testcase[i].rc,
            "%u: expected %d, got %d\n",
            i, testcase[i].rc, rc);
 
+        todo_wine_if( i == 7 || i == 8 || i == 9 )
         ok(!strcmp(buf, testcase[i].str),
            "%u: expected %s, got %s\n",
            i, wine_dbgstr_a(testcase[i].str), wine_dbgstr_an(buf, rc));




More information about the wine-cvs mailing list