Francois Gouget : kernel32/tests: Don't skip the CompareStringA() tests on Windows.
Module: wine Branch: master Commit: 2e89691bb64ce5ed1b8ac3d025faa0dc85ac6bf3 URL: https://source.winehq.org/git/wine.git/?a=commit;h=2e89691bb64ce5ed1b8ac3d02... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Sun Aug 22 18:15:42 2021 +0200 kernel32/tests: Don't skip the CompareStringA() tests on Windows. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/kernel32/tests/locale.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c index c65c2cce3f2..4625283035c 100644 --- a/dlls/kernel32/tests/locale.c +++ b/dlls/kernel32/tests/locale.c @@ -1903,9 +1903,13 @@ static void test_CompareStringA(void) ret = lstrcmpA(NULL, ""); ok (ret == -1 || broken(ret == -2) /* win9x */, "lstrcmpA(NULL, \"\") should return -1, got %d\n", ret); - - if (0) { /* this requires collation table patch to make it MS compatible */ + + /* this requires 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"); + else + { ret = CompareStringA(LOCALE_SYSTEM_DEFAULT, 0, "'o", -1, "-o", -1 ); ok(ret == CSTR_LESS_THAN, "'o vs -o expected CSTR_LESS_THAN, got %d\n", ret);
participants (1)
-
Alexandre Julliard