Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d40af92f
Commit
d40af92f
authored
Aug 29, 2022
by
Joel Holdsworth
Committed by
Alexandre Julliard
Sep 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: GetDiskFreeSpaceA/W test targetted at a real drive.
Signed-off-by:
Joel Holdsworth
<
joel@airwebreathe.org.uk
>
parent
d44a32ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
drive.c
dlls/kernel32/tests/drive.c
+7
-0
No files found.
dlls/kernel32/tests/drive.c
View file @
d40af92f
...
...
@@ -155,6 +155,9 @@ static void test_GetDiskFreeSpaceA(void)
ret
=
GetDiskFreeSpaceA
(
"/"
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceA error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceA
(
"C:
\\
"
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceA error %ld
\n
"
,
GetLastError
());
logical_drives
=
GetLogicalDrives
();
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld
\n
"
,
GetLastError
());
...
...
@@ -215,6 +218,7 @@ static void test_GetDiskFreeSpaceW(void)
static
const
WCHAR
empty_pathW
[]
=
{
0
};
static
const
WCHAR
root_pathW
[]
=
{
'\\'
,
0
};
static
const
WCHAR
unix_style_root_pathW
[]
=
{
'/'
,
0
};
static
const
WCHAR
c_drive_pathW
[]
=
{
'C'
,
':'
,
'\\'
,
0
};
ret
=
GetDiskFreeSpaceW
(
NULL
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
if
(
ret
==
0
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
...
...
@@ -235,6 +239,9 @@ static void test_GetDiskFreeSpaceW(void)
ret
=
GetDiskFreeSpaceW
(
unix_style_root_pathW
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceW error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceW
(
c_drive_pathW
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceW error %ld
\n
"
,
GetLastError
());
logical_drives
=
GetLogicalDrives
();
ok
(
logical_drives
!=
0
,
"GetLogicalDrives error %ld
\n
"
,
GetLastError
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment