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
f133222d
Commit
f133222d
authored
Jan 10, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Add a test for MsiGetComponentState.
parent
35bdf018
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
package.c
dlls/msi/tests/package.c
+10
-2
No files found.
dlls/msi/tests/package.c
View file @
f133222d
...
...
@@ -7829,7 +7829,7 @@ static void test_removefiles(void)
ok
(
r
==
ERROR_SUCCESS
,
"cost init failed
\n
"
);
r
=
MsiDoAction
(
hpkg
,
"FileCost"
);
ok
(
r
==
ERROR_SUCCESS
,
"
cost finalize
failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"
file cost
failed
\n
"
);
installed
=
action
=
0xdeadbeef
;
r
=
MsiGetComponentState
(
hpkg
,
"oxygen"
,
&
installed
,
&
action
);
...
...
@@ -7841,11 +7841,19 @@ static void test_removefiles(void)
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed
\n
"
);
r
=
MsiDoAction
(
hpkg
,
"InstallValidate"
);
ok
(
r
==
ERROR_SUCCESS
,
"
cost finaliz
e failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"
install validat
e failed
\n
"
);
r
=
MsiSetComponentState
(
hpkg
,
"hydrogen"
,
INSTALLSTATE_ABSENT
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to set component state: %d
\n
"
,
r
);
installed
=
action
=
0xdeadbeef
;
r
=
MsiGetComponentState
(
hpkg
,
"hydrogen"
,
&
installed
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get component state %u
\n
"
,
r
);
todo_wine
{
ok
(
installed
==
INSTALLSTATE_UNKNOWN
,
"expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
installed
);
ok
(
action
==
INSTALLSTATE_UNKNOWN
,
"expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
action
);
}
r
=
MsiSetComponentState
(
hpkg
,
"helium"
,
INSTALLSTATE_LOCAL
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to set component state: %d
\n
"
,
r
);
...
...
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