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
5a0a5382
Commit
5a0a5382
authored
Oct 22, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Add tests for msidbFeatureAttributesUIDisallowAbsent.
parent
ded22a58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
package.c
dlls/msi/tests/package.c
+21
-0
No files found.
dlls/msi/tests/package.c
View file @
5a0a5382
...
@@ -9524,6 +9524,10 @@ static void test_featureparents(void)
...
@@ -9524,6 +9524,10 @@ static void test_featureparents(void)
r
=
add_feature_entry
(
hdb
,
"'orion', '', '', '', 2, 1, '', 0"
);
r
=
add_feature_entry
(
hdb
,
"'orion', '', '', '', 2, 1, '', 0"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature: %d
\n
"
,
r
);
/* msidbFeatureAttributesUIDisallowAbsent */
r
=
add_feature_entry
(
hdb
,
"'lyra', '', '', '', 2, 1, '', 16"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature: %d
\n
"
,
r
);
/* disabled because of install level */
/* disabled because of install level */
r
=
add_feature_entry
(
hdb
,
"'waters', '', '', '', 15, 101, '', 9"
);
r
=
add_feature_entry
(
hdb
,
"'waters', '', '', '', 15, 101, '', 9"
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"cannot add feature: %d
\n
"
,
r
);
...
@@ -9704,6 +9708,13 @@ static void test_featureparents(void)
...
@@ -9704,6 +9708,13 @@ static void test_featureparents(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"lyra"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
todo_wine
ok
(
action
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"waters"
,
&
state
,
&
action
);
r
=
MsiGetFeatureState
(
hpkg
,
"waters"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
...
@@ -9796,6 +9807,9 @@ static void test_featureparents(void)
...
@@ -9796,6 +9807,9 @@ static void test_featureparents(void)
r
=
MsiSetFeatureState
(
hpkg
,
"orion"
,
INSTALLSTATE_ABSENT
);
r
=
MsiSetFeatureState
(
hpkg
,
"orion"
,
INSTALLSTATE_ABSENT
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to set feature state: %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to set feature state: %d
\n
"
,
r
);
r
=
MsiSetFeatureState
(
hpkg
,
"lyra"
,
INSTALLSTATE_ABSENT
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to set feature state: %d
\n
"
,
r
);
r
=
MsiSetFeatureState
(
hpkg
,
"nosuchfeature"
,
INSTALLSTATE_ABSENT
);
r
=
MsiSetFeatureState
(
hpkg
,
"nosuchfeature"
,
INSTALLSTATE_ABSENT
);
ok
(
r
==
ERROR_UNKNOWN_FEATURE
,
"Expected ERROR_UNKNOWN_FEATURE, got %u
\n
"
,
r
);
ok
(
r
==
ERROR_UNKNOWN_FEATURE
,
"Expected ERROR_UNKNOWN_FEATURE, got %u
\n
"
,
r
);
...
@@ -9822,6 +9836,13 @@ static void test_featureparents(void)
...
@@ -9822,6 +9836,13 @@ static void test_featureparents(void)
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetFeatureState
(
hpkg
,
"lyra"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_ABSENT
,
"Expected lyra INSTALLSTATE_ABSENT, got %d
\n
"
,
state
);
todo_wine
ok
(
action
==
INSTALLSTATE_ABSENT
,
"Expected lyra INSTALLSTATE_ABSENT, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
action
=
0xdeadbee
;
r
=
MsiGetComponentState
(
hpkg
,
"leo"
,
&
state
,
&
action
);
r
=
MsiGetComponentState
(
hpkg
,
"leo"
,
&
state
,
&
action
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected leo INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected leo INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
...
...
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