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
3b79a7b4
Commit
3b79a7b4
authored
Jul 09, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jul 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Skip patch tests if product installation failed.
parent
f01b9aab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
patch.c
dlls/msi/tests/patch.c
+18
-3
No files found.
dlls/msi/tests/patch.c
View file @
3b79a7b4
...
...
@@ -700,7 +700,11 @@ static void test_simple_patch( void )
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
if
(
r
!=
ERROR_SUCCESS
)
{
skip
(
"Product installation failed with error code %u
\n
"
,
r
);
goto
cleanup
;
}
size
=
get_pf_file_size
(
"msitest
\\
patch.txt"
);
ok
(
size
==
1000
,
"expected 1000, got %u
\n
"
,
size
);
...
...
@@ -840,6 +844,7 @@ uninstall:
ok
(
!
delete_pf
(
"msitest
\\
patch.txt"
,
TRUE
),
"file not removed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"directory not removed
\n
"
);
cleanup:
DeleteFileA
(
msifile
);
DeleteFileA
(
mspfile
);
DeleteFileA
(
"msitest
\\
patch.txt"
);
...
...
@@ -930,7 +935,11 @@ static void test_system_tables( void )
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
if
(
r
!=
ERROR_SUCCESS
)
{
skip
(
"Product installation failed with error code %d
\n
"
,
r
);
goto
cleanup
;
}
r
=
MsiOpenProductA
(
"{913B8D18-FBB6-4CAC-A239-C74C11E3FA74}"
,
&
hproduct
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -1059,6 +1068,7 @@ uninstall:
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
cleanup:
DeleteFileA
(
msifile
);
DeleteFileA
(
mspfile
);
DeleteFileA
(
"msitest
\\
patch.txt"
);
...
...
@@ -1085,7 +1095,11 @@ static void test_patch_registration( void )
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
if
(
r
!=
ERROR_SUCCESS
)
{
skip
(
"Product installation failed with error code %d
\n
"
,
r
);
goto
cleanup
;
}
r
=
MsiApplyPatchA
(
mspfile
,
NULL
,
INSTALLTYPE_DEFAULT
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
||
broken
(
r
==
ERROR_PATCH_PACKAGE_INVALID
),
/* version 2.0 */
...
...
@@ -1151,6 +1165,7 @@ uninstall:
INSTALLPROPERTY_LOCALPACKAGE
,
buffer
,
&
size
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"expected ERROR_UNKNOWN_PRODUCT, got %u
\n
"
,
r
);
cleanup:
DeleteFileA
(
msifile
);
DeleteFileA
(
mspfile
);
DeleteFileA
(
"msitest
\\
patch.txt"
);
...
...
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