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
1b4b37cc
Commit
1b4b37cc
authored
Oct 29, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Fix test failures.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ecb59b0b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
1 deletion
+149
-1
msi.c
dlls/msi/tests/msi.c
+119
-1
package.c
dlls/msi/tests/package.c
+9
-0
source.c
dlls/msi/tests/source.c
+21
-0
No files found.
dlls/msi/tests/msi.c
View file @
1b4b37cc
This diff is collapsed.
Click to expand it.
dlls/msi/tests/package.c
View file @
1b4b37cc
...
...
@@ -4055,6 +4055,15 @@ static void test_appsearch(void)
r
=
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Winetest_msi"
,
0
,
NULL
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_32KEY
,
NULL
,
&
hkey
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Could not create key: %d.
\n
"
,
r
);
if
(
r
==
ERROR_ACCESS_DENIED
)
{
skip
(
"insufficient rights
\n
"
);
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Winetest_msi"
);
MsiCloseHandle
(
hdb
);
DeleteFileA
(
msifile
);
return
;
}
r
=
RegSetValueExA
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
const
BYTE
*
)
"c:
\\
windows
\\
system32
\\
notepad.exe"
,
sizeof
(
"c:
\\
windows
\\
system32
\\
notepad.exe"
));
ok
(
r
==
ERROR_SUCCESS
,
"Could not set key value: %d.
\n
"
,
r
);
...
...
dlls/msi/tests/source.c
View file @
1b4b37cc
...
...
@@ -31,6 +31,7 @@
#include <objbase.h>
#include "wine/test.h"
#include "utils.h"
static
BOOL
is_wow64
;
...
...
@@ -686,6 +687,11 @@ static void test_MsiSourceListAddSourceEx(void)
win_skip
(
"Skipping MsiSourceListAddSourceExA tests
\n
"
);
return
;
}
if
(
is_process_limited
())
{
skip
(
"process is limited
\n
"
);
return
;
}
create_test_guid
(
prodcode
,
prod_squashed
);
if
(
!
(
usersid
=
get_user_sid
()))
...
...
@@ -1695,6 +1701,11 @@ static void test_MsiSourceListSetInfo(void)
win_skip
(
"MsiSourceListSetInfoA is not available
\n
"
);
return
;
}
if
(
is_process_limited
())
{
skip
(
"process is limited
\n
"
);
return
;
}
create_test_guid
(
prodcode
,
prod_squashed
);
if
(
!
(
usersid
=
get_user_sid
()))
...
...
@@ -2126,6 +2137,11 @@ static void test_MsiSourceListAddMediaDisk(void)
win_skip
(
"MsiSourceListAddMediaDiskA is not available
\n
"
);
return
;
}
if
(
is_process_limited
())
{
skip
(
"process is limited
\n
"
);
return
;
}
create_test_guid
(
prodcode
,
prod_squashed
);
if
(
!
(
usersid
=
get_user_sid
()))
...
...
@@ -3277,6 +3293,11 @@ static void test_MsiSourceListAddSource(void)
win_skip
(
"Skipping MsiSourceListAddSourceA tests
\n
"
);
return
;
}
if
(
is_process_limited
())
{
skip
(
"process is limited
\n
"
);
return
;
}
create_test_guid
(
prodcode
,
prod_squashed
);
if
(
!
(
usersid
=
get_user_sid
()))
...
...
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