netapi32/tests: Use win_skip() to skip over unimplemented functionality.
This commit is contained in:
parent
630d92b947
commit
49de63595a
|
@ -74,7 +74,7 @@ static int init_access_tests(void)
|
|||
rc=GetUserNameW(user_name, &dwSize);
|
||||
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
|
||||
{
|
||||
skip("GetUserNameW is not available.\n");
|
||||
win_skip("GetUserNameW is not available.\n");
|
||||
return 0;
|
||||
}
|
||||
ok(rc, "User Name Retrieved\n");
|
||||
|
@ -333,7 +333,7 @@ START_TEST(access)
|
|||
* if one is not available, none are.
|
||||
*/
|
||||
if (!pNetApiBufferFree) {
|
||||
skip("Needed functions are not available\n");
|
||||
win_skip("Needed functions are not available\n");
|
||||
FreeLibrary(hnetapi32);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ START_TEST(apibuf)
|
|||
if (pNetApiBufferAllocate && pNetApiBufferFree && pNetApiBufferReallocate && pNetApiBufferSize)
|
||||
run_apibuf_tests();
|
||||
else
|
||||
skip("Needed functions are not available\n");
|
||||
win_skip("Needed functions are not available\n");
|
||||
|
||||
FreeLibrary(hnetapi32);
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ START_TEST(ds)
|
|||
test_get();
|
||||
}
|
||||
else
|
||||
skip("DsRoleGetPrimaryDomainInformation is not available\n");
|
||||
win_skip("DsRoleGetPrimaryDomainInformation is not available\n");
|
||||
|
||||
FreeLibrary(hnetapi32);
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ static int init_wksta_tests(void)
|
|||
dwSize = sizeof(user_name)/sizeof(user_name[0]);
|
||||
rc=GetUserNameW(user_name, &dwSize);
|
||||
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) {
|
||||
skip("GetUserNameW is not implemented\n");
|
||||
win_skip("GetUserNameW is not implemented\n");
|
||||
return 0;
|
||||
}
|
||||
ok(rc, "User Name Retrieved\n");
|
||||
|
@ -192,7 +192,7 @@ START_TEST(wksta)
|
|||
* if one is not available, none are.
|
||||
*/
|
||||
if (!pNetApiBufferFree) {
|
||||
skip("Needed functions are not available\n");
|
||||
win_skip("Needed functions are not available\n");
|
||||
FreeLibrary(hnetapi32);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue