Module: wine Branch: master Commit: 4f4123303f0eecf5fbc3eb45d57865e9d690b36b URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f4123303f0eecf5fbc3eb45d5... Author: Kai Blin <kai.blin(a)gmail.com> Date: Mon Mar 19 09:39:11 2007 +0100 netapi32/tests: Use skip when skipping tests. --- dlls/netapi32/tests/access.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c index b625c37..92d5d3b 100644 --- a/dlls/netapi32/tests/access.c +++ b/dlls/netapi32/tests/access.c @@ -56,7 +56,10 @@ static int init_access_tests(void) dwSize = sizeof(user_name); rc=GetUserNameW(user_name, &dwSize); if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) + { + skip("netapi32 functions seem to be missing.\n"); return 0; + } ok(rc, "User Name Retrieved\n"); computer_name[0] = 0; @@ -74,13 +77,16 @@ static void run_usergetinfo_tests(void) /* If this one is not defined then none of the others will be defined */ if (!pNetUserGetInfo) + { + skip("netapi32 functions seem to be missing.\n"); return; + } /* Level 0 */ rc=pNetUserGetInfo(NULL, sAdminUserName, 0, (LPBYTE *)&ui0); if (rc != NERR_Success) { - trace ("Aborting usergetinfo_tests(). NetUserGetInfo: rc=%d\n", rc); - return; + skip("Aborting usergetinfo_tests(). NetUserGetInfo: rc=%d\n", rc); + return; } ok(!lstrcmpW(sAdminUserName, ui0->usri0_name), "This is really user name\n"); pNetApiBufferSize(ui0, &dwSize); @@ -133,7 +139,10 @@ static void run_querydisplayinformation1_tests(void) BOOL hasGuest = FALSE; if (!pNetQueryDisplayInformation) + { + skip("netapi32 functions seem to be missing.\n"); return; + } do {