Commit 49de6359 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

netapi32/tests: Use win_skip() to skip over unimplemented functionality.

parent 630d92b9
...@@ -74,7 +74,7 @@ static int init_access_tests(void) ...@@ -74,7 +74,7 @@ static int init_access_tests(void)
rc=GetUserNameW(user_name, &dwSize); rc=GetUserNameW(user_name, &dwSize);
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
{ {
skip("GetUserNameW is not available.\n"); win_skip("GetUserNameW is not available.\n");
return 0; return 0;
} }
ok(rc, "User Name Retrieved\n"); ok(rc, "User Name Retrieved\n");
...@@ -333,7 +333,7 @@ START_TEST(access) ...@@ -333,7 +333,7 @@ START_TEST(access)
* if one is not available, none are. * if one is not available, none are.
*/ */
if (!pNetApiBufferFree) { if (!pNetApiBufferFree) {
skip("Needed functions are not available\n"); win_skip("Needed functions are not available\n");
FreeLibrary(hnetapi32); FreeLibrary(hnetapi32);
return; return;
} }
......
...@@ -98,7 +98,7 @@ START_TEST(apibuf) ...@@ -98,7 +98,7 @@ START_TEST(apibuf)
if (pNetApiBufferAllocate && pNetApiBufferFree && pNetApiBufferReallocate && pNetApiBufferSize) if (pNetApiBufferAllocate && pNetApiBufferFree && pNetApiBufferReallocate && pNetApiBufferSize)
run_apibuf_tests(); run_apibuf_tests();
else else
skip("Needed functions are not available\n"); win_skip("Needed functions are not available\n");
FreeLibrary(hnetapi32); FreeLibrary(hnetapi32);
} }
...@@ -87,7 +87,7 @@ START_TEST(ds) ...@@ -87,7 +87,7 @@ START_TEST(ds)
test_get(); test_get();
} }
else else
skip("DsRoleGetPrimaryDomainInformation is not available\n"); win_skip("DsRoleGetPrimaryDomainInformation is not available\n");
FreeLibrary(hnetapi32); FreeLibrary(hnetapi32);
} }
...@@ -51,7 +51,7 @@ static int init_wksta_tests(void) ...@@ -51,7 +51,7 @@ static int init_wksta_tests(void)
dwSize = sizeof(user_name)/sizeof(user_name[0]); dwSize = sizeof(user_name)/sizeof(user_name[0]);
rc=GetUserNameW(user_name, &dwSize); rc=GetUserNameW(user_name, &dwSize);
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) { if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) {
skip("GetUserNameW is not implemented\n"); win_skip("GetUserNameW is not implemented\n");
return 0; return 0;
} }
ok(rc, "User Name Retrieved\n"); ok(rc, "User Name Retrieved\n");
...@@ -192,7 +192,7 @@ START_TEST(wksta) ...@@ -192,7 +192,7 @@ START_TEST(wksta)
* if one is not available, none are. * if one is not available, none are.
*/ */
if (!pNetApiBufferFree) { if (!pNetApiBufferFree) {
skip("Needed functions are not available\n"); win_skip("Needed functions are not available\n");
FreeLibrary(hnetapi32); FreeLibrary(hnetapi32);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment