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
fca92ae6
Commit
fca92ae6
authored
Sep 07, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Avoid test failures when running as an unprivileged user.
parent
8a718259
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
install.c
dlls/msi/tests/install.c
+15
-0
No files found.
dlls/msi/tests/install.c
View file @
fca92ae6
...
...
@@ -3159,6 +3159,11 @@ static void test_samesequence(void)
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
if
(
r
==
ERROR_INSTALL_FAILURE
)
{
win_skip
(
"unprivileged user?
\n
"
);
goto
error
;
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
if
(
r
==
ERROR_SUCCESS
)
{
...
...
@@ -3167,6 +3172,8 @@ static void test_samesequence(void)
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"Directory not created
\n
"
);
}
error:
delete_cab_files
();
DeleteFileA
(
msifile
);
}
...
...
@@ -3181,6 +3188,12 @@ static void test_uiLevelFlags(void)
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
|
INSTALLUILEVEL_SOURCERESONLY
,
NULL
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
if
(
r
==
ERROR_INSTALL_FAILURE
)
{
win_skip
(
"unprivileged user?
\n
"
);
goto
error
;
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
if
(
r
==
ERROR_SUCCESS
)
{
...
...
@@ -3189,6 +3202,8 @@ static void test_uiLevelFlags(void)
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"Directory not created
\n
"
);
}
error:
delete_cab_files
();
DeleteFileA
(
msifile
);
}
...
...
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