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
c89617e0
Commit
c89617e0
authored
Jan 07, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Skip some tests if we don't have enough rights.
parent
b91f4a3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
install.c
dlls/setupapi/tests/install.c
+12
-0
No files found.
dlls/setupapi/tests/install.c
View file @
c89617e0
...
...
@@ -288,6 +288,13 @@ static void test_install_svc_from(void)
infhandle
=
SetupOpenInfFileA
(
path
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
SetLastError
(
0xdeadbeef
);
ret
=
SetupInstallServicesFromInfSectionA
(
infhandle
,
"Winetest.Services"
,
0
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
{
skip
(
"Not enough rights to install the service
\n
"
);
SetupCloseInfFile
(
infhandle
);
DeleteFile
(
inffile
);
return
;
}
ok
(
ret
,
"Expected success
\n
"
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %08x
\n
"
,
GetLastError
());
...
...
@@ -344,6 +351,11 @@ static void test_driver_install(void)
skip
(
"OpenSCManagerA is not implemented, we are most likely on win9x
\n
"
);
return
;
}
else
if
(
!
scm_handle
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
skip
(
"Not enough rights to install the service
\n
"
);
return
;
}
CloseServiceHandle
(
scm_handle
);
/* Place where we expect the driver to be installed */
...
...
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