Andrew Nguyen : kernel32/tests: Correctly skip when Unicode locale functions are not available.

Alexandre Julliard julliard at winehq.org
Mon May 18 08:13:18 CDT 2009


Module: wine
Branch: master
Commit: 1e74b21f182162e03ba1e9490d3f5b5cebe309ee
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1e74b21f182162e03ba1e9490d3f5b5cebe309ee

Author: Andrew Nguyen <arethusa26 at gmail.com>
Date:   Mon May 18 04:24:37 2009 -0500

kernel32/tests: Correctly skip when Unicode locale functions are not available.

---

 dlls/kernel32/tests/locale.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index e88e182..4f287cf 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -432,7 +432,10 @@ static void test_GetDateFormatW(void)
   ret = GetDateFormatW(LOCALE_SYSTEM_DEFAULT, DATE_LONGDATE, NULL,
                        input, buffer, COUNTOF(buffer));
   if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
-      return;
+  {
+    win_skip("GetDateFormatW is not implemented\n");
+    return;
+  }
   ok(!ret && GetLastError() == ERROR_INVALID_FLAGS,
      "Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError());
   EXPECT_EQW;
@@ -1631,8 +1634,11 @@ static void test_FoldStringA(void)
   /* MAP_FOLDDIGITS */
   SetLastError(0);
   ret = pFoldStringA(MAP_FOLDDIGITS, digits_src, -1, dst, 256);
-  if (GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
+  if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+  {
+    win_skip("FoldStringA is not implemented\n");
     return;
+  }
   ok(ret == 4, "Expected ret == 4, got %d, error %d\n", ret, GetLastError());
   ok(strcmp(dst, digits_dst) == 0,
      "MAP_FOLDDIGITS: Expected '%s', got '%s'\n", digits_dst, dst);




More information about the wine-cvs mailing list