Gijs Vermeulen : advapi32/tests: Fix test_process_security with non-English locale.

Alexandre Julliard julliard at winehq.org
Thu Oct 17 16:01:25 CDT 2019


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

Author: Gijs Vermeulen <gijsvrm at codeweavers.com>
Date:   Thu Oct 17 13:47:30 2019 +0200

advapi32/tests: Fix test_process_security with non-English locale.

Signed-off-by: Gijs Vermeulen <gijsvrm at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/advapi32/tests/security.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index aee4587425..5f65ed385d 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -3004,7 +3004,10 @@ static void test_process_security(void)
     ret = LookupAccountSidA( NULL, UsersSid, account, &acc_size, domain, &dom_size, &use );
     ok(ret, "LookupAccountSid failed with %d\n", ret);
     todo_wine ok(use == SidTypeGroup, "expect SidTypeGroup, got %d\n", use);
-    todo_wine ok(!strcmp(account, "None"), "expect None, got %s\n", account);
+    if (PRIMARYLANGID(GetSystemDefaultLangID()) != LANG_ENGLISH)
+        skip("Non-English locale (test with hardcoded 'None')\n");
+    else
+        todo_wine ok(!strcmp(account, "None"), "expect None, got %s\n", account);
 
     res = GetTokenInformation( token, TokenUser, NULL, 0, &size );
     ok(!res, "Expected failure, got %d\n", res);




More information about the wine-cvs mailing list