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
4d2fb55e
Commit
4d2fb55e
authored
May 11, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
May 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add a test to show that the InstallSource property is unchanged after an upgrade.
parent
715a506f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
patch.c
dlls/msi/tests/patch.c
+12
-1
No files found.
dlls/msi/tests/patch.c
View file @
4d2fb55e
...
...
@@ -679,7 +679,7 @@ static void test_simple_patch( void )
{
UINT
r
;
DWORD
size
;
char
path
[
MAX_PATH
];
char
path
[
MAX_PATH
]
,
install_source
[
MAX_PATH
]
;
const
char
*
query
;
MSIHANDLE
hpackage
,
hdb
,
hview
,
hrec
;
...
...
@@ -703,6 +703,11 @@ static void test_simple_patch( void )
size
=
get_pf_file_size
(
"msitest
\\
patch.txt"
);
ok
(
size
==
1000
,
"expected 1000, got %u
\n
"
,
size
);
size
=
sizeof
(
install_source
);
r
=
MsiGetProductInfoA
(
"{913B8D18-FBB6-4CAC-A239-C74C11E3FA74}"
,
"InstallSource"
,
install_source
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
r
=
MsiApplyPatchA
(
mspfile
,
NULL
,
INSTALLTYPE_DEFAULT
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
||
broken
(
r
==
ERROR_PATCH_PACKAGE_INVALID
),
/* version 2.0 */
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -766,6 +771,12 @@ static void test_simple_patch( void )
MsiCloseHandle
(
hview
);
MsiCloseHandle
(
hdb
);
size
=
sizeof
(
path
);
r
=
MsiGetProductInfoA
(
"{913B8D18-FBB6-4CAC-A239-C74C11E3FA74}"
,
"InstallSource"
,
path
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
todo_wine
ok
(
!
strcasecmp
(
path
,
install_source
),
"wrong path %s
\n
"
,
path
);
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\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