Hans Leidekker : pdh: Skip tests when running on non-english locale.

Alexandre Julliard julliard at winehq.org
Mon Oct 1 07:55:01 CDT 2007


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

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Sat Sep 29 21:07:16 2007 +0200

pdh: Skip tests when running on non-english locale.

---

 dlls/pdh/tests/pdh.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/pdh/tests/pdh.c b/dlls/pdh/tests/pdh.c
index 0cfdff3..7a9770d 100644
--- a/dlls/pdh/tests/pdh.c
+++ b/dlls/pdh/tests/pdh.c
@@ -858,6 +858,11 @@ static void test_PdhCollectQueryDataEx(void)
 
 START_TEST(pdh)
 {
+    if (PRIMARYLANGID(LANGIDFROMLCID(GetThreadLocale())) != LANG_ENGLISH)
+    {
+        skip("non-english locale\n");
+        return;
+    }
     init_function_ptrs();
 
     test_PdhOpenQueryA();




More information about the wine-cvs mailing list