Francois Gouget : kernel32/tests: Don't skip the sorting tests on Windows.

Alexandre Julliard julliard at winehq.org
Tue Aug 17 16:26:52 CDT 2021


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Aug 17 17:32:50 2021 +0200

kernel32/tests: Don't skip the sorting tests on Windows.

Only skip them in Wine since it's missing a compatible collation table.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index 75c86bbaf21..c65c2cce3f2 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -3093,6 +3093,13 @@ static void test_sorting(void)
 
     assert(sizeof(buf) >= sizeof(strings));
 
+    /* this requires the collation table patch to make it MS compatible */
+    if (strcmp(winetest_platform, "wine") == 0)
+    {
+        skip("in Wine due to the lack of a compatible collation table\n");
+        return;
+    }
+
     /* 1. sort using lstrcmpA */
     memcpy(buf, strings, sizeof(strings));
     qsort(buf, ARRAY_SIZE(strings), sizeof(strings[0]), compare_string1);
@@ -7183,6 +7190,5 @@ START_TEST(locale)
   test_SpecialCasing();
   test_NLSVersion();
   test_geo_name();
-  /* this requires collation table patch to make it MS compatible */
-  if (0) test_sorting();
+  test_sorting();
 }




More information about the wine-cvs mailing list