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
349d8bd1
Commit
349d8bd1
authored
Jan 19, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Windows Installer 3.0 often returns ERROR_INVALID_PARAMETER.
parent
913e792b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
24 deletions
+40
-24
install.c
dlls/msi/tests/install.c
+40
-24
source.c
dlls/msi/tests/source.c
+0
-0
No files found.
dlls/msi/tests/install.c
View file @
349d8bd1
...
...
@@ -3761,17 +3761,21 @@ static void test_publishsourcelist(void)
ok
(
pf_exists
(
"msitest"
),
"File not installed
\n
"
);
/* nothing published */
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListGetInfoA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
NULL
,
&
size
);
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListEnumSourcesA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
NULL
,
&
size
);
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
r
=
MsiInstallProductA
(
msifile
,
"REGISTER_PRODUCT=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -3779,17 +3783,21 @@ static void test_publishsourcelist(void)
ok
(
pf_exists
(
"msitest"
),
"File not installed
\n
"
);
/* after RegisterProduct */
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListGetInfoA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
NULL
,
&
size
);
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListEnumSourcesA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
NULL
,
&
size
);
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
r
=
MsiInstallProductA
(
msifile
,
"PROCESS_COMPONENTS=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -3797,17 +3805,21 @@ static void test_publishsourcelist(void)
ok
(
pf_exists
(
"msitest"
),
"File not installed
\n
"
);
/* after ProcessComponents */
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListGetInfoA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
NULL
,
&
size
);
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListEnumSourcesA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
NULL
,
&
size
);
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
r
=
MsiInstallProductA
(
msifile
,
"PUBLISH_FEATURES=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -3815,17 +3827,21 @@ static void test_publishsourcelist(void)
ok
(
pf_exists
(
"msitest"
),
"File not installed
\n
"
);
/* after PublishFeatures */
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListGetInfoA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
NULL
,
&
size
);
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAME
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
size
=
0xdeadbeef
;
size
=
MAX_PATH
;
lstrcpyA
(
value
,
"aaa"
);
r
=
pMsiSourceListEnumSourcesA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
NULL
,
&
size
);
MSICODE_PRODUCT
|
MSISOURCETYPE_URL
,
0
,
value
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"Expected ERROR_UNKNOWN_PRODUCT, got %d
\n
"
,
r
);
ok
(
size
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
size
);
ok
(
size
==
MAX_PATH
,
"Expected %d, got %d
\n
"
,
MAX_PATH
,
size
);
ok
(
!
lstrcmpA
(
value
,
"aaa"
),
"Expected
\"
aaa
\"
, got
\"
%s
\"\n
"
,
value
);
r
=
MsiInstallProductA
(
msifile
,
"PUBLISH_PRODUCT=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
dlls/msi/tests/source.c
View file @
349d8bd1
This diff is collapsed.
Click to expand it.
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