Module: wine Branch: master Commit: a85dc859606b079dc9e4923b48141ec4c85fb743 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a85dc859606b079dc9e4923b48...
Author: Andrew Nguyen arethusa26@gmail.com Date: Mon May 18 04:24:26 2009 -0500
kernel32/tests: Correctly skip tests when the Unicode drive functions are not available.
---
dlls/kernel32/tests/drive.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/kernel32/tests/drive.c b/dlls/kernel32/tests/drive.c index 98bc126..6bee4a7 100644 --- a/dlls/kernel32/tests/drive.c +++ b/dlls/kernel32/tests/drive.c @@ -62,9 +62,9 @@ static void test_GetDriveTypeW(void) for (drive[0] = 'A'; drive[0] <= 'Z'; drive[0]++) { type = GetDriveTypeW(drive); - if (type == DRIVE_UNKNOWN && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) + if (type == DRIVE_UNKNOWN && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) { - /* Must be Win9x which doesn't support the Unicode functions */ + win_skip("GetDriveTypeW is not available on Win9x\n"); return; } ok(type > 0 && type <= 6, "not a valid drive %c: type %u\n", drive[0], type); @@ -165,9 +165,9 @@ static void test_GetDiskFreeSpaceW(void) static const WCHAR unix_style_root_pathW[] = { '/', 0 };
ret = GetDiskFreeSpaceW(NULL, §ors_per_cluster, &bytes_per_sector, &free_clusters, &total_clusters); - if (ret == 0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) + if (ret == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) { - /* Must be Win9x which doesn't support the Unicode functions */ + win_skip("GetDiskFreeSpaceW is not available\n"); return; } ok(ret, "GetDiskFreeSpaceW error %d\n", GetLastError());