Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f01b9aab
Commit
f01b9aab
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/test: Uninstall the test product when skipping patch tests.
This seems to be a reasonable cleanup action.
parent
57755426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
patch.c
dlls/msi/tests/patch.c
+6
-3
No files found.
dlls/msi/tests/patch.c
View file @
f01b9aab
...
...
@@ -759,7 +759,7 @@ static void test_simple_patch( void )
if
(
r
==
ERROR_PATCH_PACKAGE_INVALID
)
{
win_skip
(
"Windows Installer < 3.0 detected
\n
"
);
return
;
goto
uninstall
;
}
size
=
get_pf_file_size
(
"msitest
\\
patch.txt"
);
...
...
@@ -827,6 +827,7 @@ static void test_simple_patch( void )
MsiCloseHandle
(
hview
);
MsiCloseHandle
(
hdb
);
uninstall:
size
=
sizeof
(
path
);
r
=
MsiGetProductInfoA
(
"{913B8D18-FBB6-4CAC-A239-C74C11E3FA74}"
,
"InstallSource"
,
path
,
&
size
);
...
...
@@ -990,7 +991,7 @@ static void test_system_tables( void )
if
(
r
==
ERROR_PATCH_PACKAGE_INVALID
)
{
win_skip
(
"Windows Installer < 3.0 detected
\n
"
);
return
;
goto
uninstall
;
}
r
=
MsiOpenProductA
(
"{913B8D18-FBB6-4CAC-A239-C74C11E3FA74}"
,
&
hproduct
);
...
...
@@ -1054,6 +1055,7 @@ static void test_system_tables( void )
MsiCloseHandle
(
hdb
);
MsiCloseHandle
(
hproduct
);
uninstall:
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
ok
(
r
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -1092,7 +1094,7 @@ static void test_patch_registration( void )
if
(
r
==
ERROR_PATCH_PACKAGE_INVALID
)
{
win_skip
(
"Windows Installer < 3.0 detected
\n
"
);
return
;
goto
uninstall
;
}
buffer
[
0
]
=
0
;
...
...
@@ -1137,6 +1139,7 @@ static void test_patch_registration( void )
0
,
patch_code
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"expected ERROR_NO_MORE_ITEMS, got %u
\n
"
,
r
);
uninstall:
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