Paul Vriens : kernel32/tests: Use skip when functions are not available.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 5 13:31:25 CDT 2007


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Thu Jul  5 14:31:50 2007 +0200

kernel32/tests: Use skip when functions are not available.

---

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

diff --git a/dlls/kernel32/tests/toolhelp.c b/dlls/kernel32/tests/toolhelp.c
index ab067d1..ca9c06c 100644
--- a/dlls/kernel32/tests/toolhelp.c
+++ b/dlls/kernel32/tests/toolhelp.c
@@ -305,7 +305,11 @@ START_TEST(toolhelp)
     if (!pCreateToolhelp32Snapshot || 
         !pModule32First || !pModule32Next ||
         !pProcess32First || !pProcess32Next ||
-        !pThread32First || !pThread32Next) return;
+        !pThread32First || !pThread32Next)
+    {
+        skip("Needed functions are not available, most likely running on Windows NT\n");
+        return;
+    }
 
     r = init();
     ok(r == 0, "Basic init of sub-process test\n");




More information about the wine-cvs mailing list