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

This commit is contained in:
Paul Vriens 2007-07-05 14:31:50 +02:00 committed by Alexandre Julliard
parent 69eeb8b1b7
commit 203bcf4271
1 changed files with 5 additions and 1 deletions

View File

@ -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");