mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
kernel32/tests: Added tests for GetDiskFreeSpaceA/W with volume GUID paths.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
This commit is contained in:
parent
d40af92f32
commit
3741ecf079
1 changed files with 18 additions and 0 deletions
|
@ -138,6 +138,7 @@ static void test_GetDiskFreeSpaceA(void)
|
|||
{
|
||||
BOOL ret;
|
||||
DWORD sectors_per_cluster, bytes_per_sector, free_clusters, total_clusters;
|
||||
char volume_guid_path[50];
|
||||
char drive[] = "?:\\";
|
||||
DWORD logical_drives;
|
||||
|
||||
|
@ -158,6 +159,14 @@ static void test_GetDiskFreeSpaceA(void)
|
|||
ret = GetDiskFreeSpaceA("C:\\", §ors_per_cluster, &bytes_per_sector, &free_clusters, &total_clusters);
|
||||
ok(ret, "GetDiskFreeSpaceA error %ld\n", GetLastError());
|
||||
|
||||
ret = GetVolumeNameForVolumeMountPointA("C:\\", volume_guid_path,
|
||||
sizeof(volume_guid_path) / sizeof(volume_guid_path[0]));
|
||||
ok(ret, "GetVolumeNameForVolumeMountPointA error %ld\n", GetLastError());
|
||||
|
||||
ret = GetDiskFreeSpaceA(volume_guid_path, §ors_per_cluster, &bytes_per_sector, &free_clusters, &total_clusters);
|
||||
todo_wine
|
||||
ok(ret, "GetDiskFreeSpaceA error %ld\n", GetLastError());
|
||||
|
||||
logical_drives = GetLogicalDrives();
|
||||
ok(logical_drives != 0, "GetLogicalDrives error %ld\n", GetLastError());
|
||||
|
||||
|
@ -213,6 +222,7 @@ static void test_GetDiskFreeSpaceW(void)
|
|||
{
|
||||
BOOL ret;
|
||||
DWORD sectors_per_cluster, bytes_per_sector, free_clusters, total_clusters;
|
||||
WCHAR volume_guid_path[50];
|
||||
WCHAR drive[] = {'?',':','\\',0};
|
||||
DWORD logical_drives;
|
||||
static const WCHAR empty_pathW[] = { 0 };
|
||||
|
@ -242,6 +252,14 @@ static void test_GetDiskFreeSpaceW(void)
|
|||
ret = GetDiskFreeSpaceW(c_drive_pathW, §ors_per_cluster, &bytes_per_sector, &free_clusters, &total_clusters);
|
||||
ok(ret, "GetDiskFreeSpaceW error %ld\n", GetLastError());
|
||||
|
||||
ret = GetVolumeNameForVolumeMountPointW(c_drive_pathW, volume_guid_path,
|
||||
sizeof(volume_guid_path) / sizeof(volume_guid_path[0]));
|
||||
ok(ret, "GetVolumeNameForVolumeMountPointW error %ld\n", GetLastError());
|
||||
|
||||
ret = GetDiskFreeSpaceW(volume_guid_path, §ors_per_cluster, &bytes_per_sector, &free_clusters, &total_clusters);
|
||||
todo_wine
|
||||
ok(ret, "GetDiskFreeSpaceW error %ld\n", GetLastError());
|
||||
|
||||
logical_drives = GetLogicalDrives();
|
||||
ok(logical_drives != 0, "GetLogicalDrives error %ld\n", GetLastError());
|
||||
|
||||
|
|
Loading…
Reference in a new issue