James Hawkins : kernel32: Remove two tests that produce different results for win9x and NT platforms .

Alexandre Julliard julliard at winehq.org
Thu May 29 06:52:52 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Wed May 28 18:55:10 2008 -0500

kernel32: Remove two tests that produce different results for win9x and NT platforms.

---

 dlls/kernel32/tests/toolhelp.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/dlls/kernel32/tests/toolhelp.c b/dlls/kernel32/tests/toolhelp.c
index 48b6a6b..357f82d 100644
--- a/dlls/kernel32/tests/toolhelp.c
+++ b/dlls/kernel32/tests/toolhelp.c
@@ -102,7 +102,6 @@ static void test_process(DWORD curr_pid, DWORD sub_pcs_pid)
 {
     HANDLE              hSnapshot;
     PROCESSENTRY32      pe;
-    THREADENTRY32       te;
     MODULEENTRY32       me;
     unsigned            found = 0;
     int                 num = 0;
@@ -144,9 +143,6 @@ static void test_process(DWORD curr_pid, DWORD sub_pcs_pid)
      * interesting to be there, especially not the just forked off child */
     ok (childpos !=0, "child is not expected to be at position 0.\n");
 
-    te.dwSize = sizeof(te);
-    ok(!pThread32First( hSnapshot, &te ), "shouldn't return a thread\n");
-
     me.dwSize = sizeof(me);
     ok(!pModule32First( hSnapshot, &me ), "shouldn't return a module\n");
 
@@ -157,7 +153,6 @@ static void test_process(DWORD curr_pid, DWORD sub_pcs_pid)
 static void test_thread(DWORD curr_pid, DWORD sub_pcs_pid)
 {
     HANDLE              hSnapshot;
-    PROCESSENTRY32      pe;
     THREADENTRY32       te;
     MODULEENTRY32       me;
     int                 num = 0;
@@ -198,9 +193,6 @@ static void test_thread(DWORD curr_pid, DWORD sub_pcs_pid)
     ok(curr_found == 1, "couldn't find self in thread list\n");
     ok(sub_found == 2, "couldn't find sub-process thread's in thread list\n");
 
-    pe.dwSize = sizeof(pe);
-    ok(!pProcess32First( hSnapshot, &pe ), "shouldn't return a process\n");
-
     me.dwSize = sizeof(me);
     ok(!pModule32First( hSnapshot, &me ), "shouldn't return a module\n");
 




More information about the wine-cvs mailing list