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
5b76cd19
Commit
5b76cd19
authored
Jul 21, 2014
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jul 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Add non-existence value tests for mixed package.
parent
6fc6d32d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
install.c
dlls/msi/tests/install.c
+16
-8
No files found.
dlls/msi/tests/install.c
View file @
5b76cd19
...
...
@@ -5701,15 +5701,19 @@ static void test_mixed_package(void)
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
msitest"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_32KEY
,
&
hkey
);
ok
(
!
res
,
"can't open 32-bit component key
\n
"
);
ok
(
!
res
,
"can't open 32-bit component key
, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test1"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!
res
,
"value test1 not found
\n
"
);
ok
(
!
res
,
"expected RegQueryValueEx to succeed, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test2"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
res
,
"expected RegQueryValueEx to fail, got %d
\n
"
,
res
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
msitest"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
!
res
,
"can't open 64-bit component key
\n
"
);
ok
(
!
res
,
"can't open 64-bit component key, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test1"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
res
,
"expected RegQueryValueEx to fail, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test2"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!
res
,
"
value test2 not found
\n
"
);
ok
(
!
res
,
"
expected RegQueryValueEx to succeed, got %d
\n
"
,
res
);
RegCloseKey
(
hkey
);
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
...
...
@@ -5728,15 +5732,19 @@ static void test_mixed_package(void)
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
msitest"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_32KEY
,
&
hkey
);
ok
(
!
res
,
"can't open 32-bit component key
\n
"
);
ok
(
!
res
,
"can't open 32-bit component key
, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test1"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!
res
,
"value test1 not found
\n
"
);
ok
(
!
res
,
"expected RegQueryValueEx to succeed, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test2"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
res
,
"expected RegQueryValueEx to fail, got %d
\n
"
,
res
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
msitest"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
!
res
,
"can't open 64-bit component key
\n
"
);
ok
(
!
res
,
"can't open 64-bit component key, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test1"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
res
,
"expected RegQueryValueEx to fail, got %d
\n
"
,
res
);
res
=
RegQueryValueExA
(
hkey
,
"test2"
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
!
res
,
"
value test2 not found
\n
"
);
ok
(
!
res
,
"
expected RegQueryValueEx to succeed, got %d
\n
"
,
res
);
RegCloseKey
(
hkey
);
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
...
...
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