Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5e58b29c
Commit
5e58b29c
authored
Jul 13, 2009
by
Nicolas Le Cam
Committed by
Alexandre Julliard
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Skip GetVolumeInformation test on current directory when running…
kernel32/tests: Skip GetVolumeInformation test on current directory when running on a root directory.
parent
1975ba27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
volume.c
dlls/kernel32/tests/volume.c
+12
-7
No files found.
dlls/kernel32/tests/volume.c
View file @
5e58b29c
...
...
@@ -322,16 +322,21 @@ static void test_GetVolumeInformationA(void)
ret
=
pGetVolumeNameForVolumeMountPointA
(
Root_Dir1
,
volume
,
MAX_PATH
);
ok
(
ret
==
TRUE
,
"GetVolumeNameForVolumeMountPointA failed
\n
"
);
/* **** now start the tests **** */
/* check for error on no trailing \ */
ret
=
pGetVolumeInformationA
(
Root_Dir0
,
vol_name_buf
,
vol_name_size
,
NULL
,
NULL
,
NULL
,
fs_name_buf
,
fs_name_len
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_NAME
,
"GetVolumeInformationA w/o '
\\
' did not fail, last error %u
\n
"
,
GetLastError
());
result
=
GetCurrentDirectory
(
MAX_PATH
,
currentdir
);
ok
(
result
,
"GetCurrentDirectory: error %d
\n
"
,
GetLastError
());
/* **** now start the tests **** */
/* check for error on no trailing \ */
if
(
result
>
3
)
{
ret
=
pGetVolumeInformationA
(
Root_Dir0
,
vol_name_buf
,
vol_name_size
,
NULL
,
NULL
,
NULL
,
fs_name_buf
,
fs_name_len
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_NAME
,
"GetVolumeInformationA w/o '
\\
' did not fail, last error %u
\n
"
,
GetLastError
());
}
else
skip
(
"Running on a root directory
\n
"
);
/* check for error on no trailing \ when current dir is root dir */
ret
=
SetCurrentDirectory
(
Root_Dir1
);
ok
(
ret
,
"SetCurrentDirectory: error %d
\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