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
114aa43a
Commit
114aa43a
authored
Mar 25, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Fix test failures on W2K with Windows Installer 2.x.
parent
60a05ad2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
20 deletions
+48
-20
msi.c
dlls/msi/tests/msi.c
+48
-20
No files found.
dlls/msi/tests/msi.c
View file @
114aa43a
...
...
@@ -9352,7 +9352,9 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_FILE_NOT_FOUND
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
...
...
@@ -9369,7 +9371,8 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_BAD_CONFIGURATION
,
ok
(
r
==
ERROR_BAD_CONFIGURATION
||
broken
(
r
==
ERROR_SUCCESS
),
/* Windows Installer < 3.0 */
"Expected ERROR_BAD_CONFIGURATION, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
...
...
@@ -9405,8 +9408,11 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_FILE_NOT_FOUND
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
)
||
broken
(
!
lstrcmpA
(
patch
,
patchcode
)),
/* Windows Installer < 3.0 */
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
...
...
@@ -9467,7 +9473,8 @@ static void test_MsiEnumPatches(void)
ok
(
r
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
patchcode
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
patchcode
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"whate"
),
ok
(
!
lstrcmpA
(
transforms
,
"whate"
)
||
broken
(
!
lstrcmpA
(
transforms
,
"banana"
)),
/* Windows Installer < 3.0 */
"Expected
\"
whate
\"
, got
\"
%s
\"\n
"
,
transforms
);
ok
(
size
==
8
||
size
==
16
,
"Expected 8 or 16, got %d
\n
"
,
size
);
...
...
@@ -9541,7 +9548,9 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_FILE_NOT_FOUND
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
...
...
@@ -9558,7 +9567,8 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_BAD_CONFIGURATION
,
ok
(
r
==
ERROR_BAD_CONFIGURATION
||
broken
(
r
==
ERROR_SUCCESS
),
/* Windows Installer < 3.0 */
"Expected ERROR_BAD_CONFIGURATION, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
...
...
@@ -9594,8 +9604,11 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_FILE_NOT_FOUND
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
)
||
broken
(
!
lstrcmpA
(
patch
,
patchcode
)),
/* Windows Installer < 3.0 */
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
...
...
@@ -9610,10 +9623,14 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_SUCCESS
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
)
||
broken
(
!
lstrcmpA
(
patch
,
patchcode
)),
/* Windows Installer < 3.0 */
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
ok
(
!
lstrcmpA
(
transforms
,
"banana"
)
||
broken
(
!
lstrcmpA
(
transforms
,
"whatever"
)),
/* Windows Installer < 3.0 */
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
ok
(
size
==
MAX_PATH
,
"Expected size to be unchanged, got %d
\n
"
,
size
);
...
...
@@ -9686,7 +9703,9 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_FILE_NOT_FOUND
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
...
...
@@ -9703,7 +9722,8 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_BAD_CONFIGURATION
,
ok
(
r
==
ERROR_BAD_CONFIGURATION
||
broken
(
r
==
ERROR_SUCCESS
),
/* Windows Installer < 3.0 */
"Expected ERROR_BAD_CONFIGURATION, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
...
...
@@ -9739,8 +9759,11 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_FILE_NOT_FOUND
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
)
||
broken
(
!
lstrcmpA
(
patch
,
patchcode
)),
/* Windows Installer < 3.0 */
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
...
...
@@ -9804,10 +9827,14 @@ static void test_MsiEnumPatches(void)
lstrcpyA
(
patch
,
"apple"
);
lstrcpyA
(
transforms
,
"banana"
);
r
=
MsiEnumPatchesA
(
prodcode
,
0
,
patch
,
transforms
,
&
size
);
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
),
ok
(
r
==
ERROR_NO_MORE_ITEMS
||
broken
(
r
==
ERROR_SUCCESS
),
/* Windows Installer < 3.0 */
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
patch
,
"apple"
)
||
broken
(
!
lstrcmpA
(
patch
,
patchcode
)),
/* Windows Installer < 3.0 */
"Expected lpPatchBuf to be unchanged, got
\"
%s
\"\n
"
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"banana"
),
ok
(
!
lstrcmpA
(
transforms
,
"banana"
)
||
broken
(
!
lstrcmpA
(
transforms
,
"whatever"
)),
/* Windows Installer < 3.0 */
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
ok
(
size
==
MAX_PATH
,
"Expected size to be unchanged, got %d
\n
"
,
size
);
...
...
@@ -9841,7 +9868,8 @@ static void test_MsiEnumPatches(void)
WideCharToMultiByte
(
CP_ACP
,
0
,
transformsW
,
-
1
,
transforms
,
MAX_PATH
,
NULL
,
NULL
);
ok
(
!
lstrcmpA
(
patch
,
patchcode
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
patchcode
,
patch
);
ok
(
!
lstrcmpA
(
transforms
,
"whate"
),
ok
(
!
lstrcmpA
(
transforms
,
"whate"
)
||
broken
(
!
lstrcmpA
(
transforms
,
"banana"
)),
/* Windows Installer < 3.0 */
"Expected
\"
whate
\"
, got
\"
%s
\"\n
"
,
transforms
);
ok
(
size
==
8
,
"Expected 8, got %d
\n
"
,
size
);
...
...
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