Daniel Lehman : msvcrt/tests: Add setlocale test.

Alexandre Julliard julliard at winehq.org
Wed May 2 15:50:02 CDT 2018


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

Author: Daniel Lehman <dlehman at esri.com>
Date:   Tue May  1 14:04:04 2018 -0700

msvcrt/tests: Add setlocale test.

Signed-off-by: Daniel Lehman <dlehman at esri.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/tests/locale.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/msvcrt/tests/locale.c b/dlls/msvcrt/tests/locale.c
index 5e6d172..024afc1 100644
--- a/dlls/msvcrt/tests/locale.c
+++ b/dlls/msvcrt/tests/locale.c
@@ -614,6 +614,9 @@ static void test_setlocale(void)
 
     ret = setlocale(LC_ALL, "English_United States.UTF8");
     ok(ret == NULL, "ret != NULL\n");
+
+    ret = setlocale(LC_ALL, "en-US");
+    ok(ret == NULL || broken (ret != NULL), "ret != NULL\n"); /* XP & 2003 */
 }
 
 static void test_crtGetStringTypeW(void)




More information about the wine-cvs mailing list