Zebediah Figura : psapi/tests: Remove an unreliable test.

Alexandre Julliard julliard at winehq.org
Mon Oct 21 15:28:36 CDT 2019


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sat Oct 19 14:39:59 2019 -0500

psapi/tests: Remove an unreliable test.

This fails on Windows 10 version 1709 and later.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/psapi/tests/psapi_main.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/dlls/psapi/tests/psapi_main.c b/dlls/psapi/tests/psapi_main.c
index 78aac2c044..b02ceed5ec 100644
--- a/dlls/psapi/tests/psapi_main.c
+++ b/dlls/psapi/tests/psapi_main.c
@@ -724,7 +724,6 @@ static void test_GetModuleBaseName(void)
 static void test_ws_functions(void)
 {
     PSAPI_WS_WATCH_INFORMATION wswi[4096];
-    ULONG_PTR pages[4096];
     HANDLE ws_handle;
     char *addr;
     unsigned int i;
@@ -773,22 +772,6 @@ static void test_ws_functions(void)
         goto free_page;
     }
 
-    SetLastError(0xdeadbeef);
-    ret = QueryWorkingSet(hpQI, pages, 4096 * sizeof(ULONG_PTR));
-    todo_wine ok(ret == 1, "failed with %d\n", GetLastError());
-    if(ret == 1)
-    {
-       for(i = 0; i < pages[0]; i++)
-           if((pages[i+1] & ~0xfffL) == (ULONG_PTR)addr)
-	   {
-	       todo_wine ok(ret == 1, "QueryWorkingSet found our page\n");
-	       goto test_gwsc;
-	   }
-       
-       todo_wine ok(0, "QueryWorkingSet didn't find our page\n");
-    }
-
-test_gwsc:
     SetLastError(0xdeadbeef);
     ret = GetWsChanges(hpQI, wswi, sizeof(wswi));
     todo_wine ok(ret == 1, "failed with %d\n", GetLastError());




More information about the wine-cvs mailing list