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
ffe16a56
Commit
ffe16a56
authored
Jun 27, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun/tests: Run test on fixed drive.
parent
8762842c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
filesystem.c
dlls/scrrun/tests/filesystem.c
+23
-7
No files found.
dlls/scrrun/tests/filesystem.c
View file @
ffe16a56
...
...
@@ -1795,7 +1795,6 @@ static void test_SerialNumber(void)
IDriveCollection
*
drives
;
IEnumVARIANT
*
iter
;
IDrive
*
drive
;
VARIANT
var
;
LONG
serial
;
HRESULT
hr
;
BSTR
name
;
...
...
@@ -1805,13 +1804,31 @@ static void test_SerialNumber(void)
hr
=
IDriveCollection_get__NewEnum
(
drives
,
(
IUnknown
**
)
&
iter
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDriveCollection_Release
(
drives
);
hr
=
IEnumVARIANT_Next
(
iter
,
1
,
&
var
,
NULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
while
(
1
)
{
DriveTypeConst
type
;
VARIANT
var
;
hr
=
IDispatch_QueryInterface
(
V_DISPATCH
(
&
var
),
&
IID_IDrive
,
(
void
**
)
&
drive
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
VariantClear
(
&
var
);
hr
=
IEnumVARIANT_Next
(
iter
,
1
,
&
var
,
NULL
);
if
(
hr
==
S_FALSE
)
{
skip
(
"No fixed drive found, skipping test.
\n
"
);
IEnumVARIANT_Release
(
iter
);
return
;
}
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDispatch_QueryInterface
(
V_DISPATCH
(
&
var
),
&
IID_IDrive
,
(
void
**
)
&
drive
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
VariantClear
(
&
var
);
hr
=
IDrive_get_DriveType
(
drive
,
&
type
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
type
==
Fixed
)
break
;
IDrive_Release
(
drive
);
}
hr
=
IDrive_get_SerialNumber
(
drive
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
...
...
@@ -1841,7 +1858,6 @@ static void test_SerialNumber(void)
IDrive_Release
(
drive
);
IEnumVARIANT_Release
(
iter
);
IDriveCollection_Release
(
drives
);
}
START_TEST
(
filesystem
)
...
...
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