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
637c3125
Commit
637c3125
authored
Sep 29, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Output the last error when services tests fail.
parent
60d97040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
service.c
dlls/advapi32/tests/service.c
+8
-8
No files found.
dlls/advapi32/tests/service.c
View file @
637c3125
...
...
@@ -649,7 +649,7 @@ static void test_get_displayname(void)
/* Delete the service */
ret
=
DeleteService
(
svc_handle
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
CloseServiceHandle
(
svc_handle
);
CloseServiceHandle
(
scm_handle
);
...
...
@@ -1985,7 +1985,7 @@ static void test_refcount(void)
/* Check if we can close the handle to the Service Control Manager */
ret
=
CloseServiceHandle
(
scm_handle
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
/* Get a new handle to the Service Control Manager */
scm_handle
=
OpenSCManagerA
(
NULL
,
NULL
,
GENERIC_ALL
);
...
...
@@ -1997,7 +1997,7 @@ static void test_refcount(void)
/* Delete the service */
ret
=
DeleteService
(
svc_handle4
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
/* We cannot create the same service again as it's still marked as 'being deleted'.
* The reason is that we still have 4 open handles to this service even though we
...
...
@@ -2023,13 +2023,13 @@ static void test_refcount(void)
/* Close all the handles to the service and try again */
ret
=
CloseServiceHandle
(
svc_handle4
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
ret
=
CloseServiceHandle
(
svc_handle3
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
ret
=
CloseServiceHandle
(
svc_handle2
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
ret
=
CloseServiceHandle
(
svc_handle1
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
/* Wait a while. Doing a CreateService too soon will result again
* in an ERROR_SERVICE_MARKED_FOR_DELETE error.
...
...
@@ -2044,7 +2044,7 @@ static void test_refcount(void)
/* Delete the service */
ret
=
DeleteService
(
svc_handle5
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
(err=%d)
\n
"
,
GetLastError
()
);
/* Wait a while. Just in case one of the following tests does a CreateService again */
Sleep
(
1000
);
...
...
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