Francois Gouget : advapi32/tests: Trace the display name if CreateService( ) unexpectedly succeeds.
Alexandre Julliard
julliard at winehq.org
Thu Mar 16 17:25:15 CDT 2017
Module: wine
Branch: master
Commit: 2f9941e224339bfba2108aed855a77869e3f50b7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f9941e224339bfba2108aed855a77869e3f50b7
Author: Francois Gouget <fgouget at free.fr>
Date: Thu Mar 16 15:39:41 2017 +0100
advapi32/tests: Trace the display name if CreateService() unexpectedly succeeds.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/advapi32/tests/service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index c7e3154..ab7ae2e 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -379,7 +379,7 @@ static void test_create_delete_svc(void)
{
svc_handle1 = CreateServiceA(scm_handle, servicename, display, 0, SERVICE_WIN32_OWN_PROCESS,
SERVICE_DISABLED, 0, pathname, NULL, NULL, NULL, NULL, NULL);
- ok(!svc_handle1, "Expected failure\n");
+ ok(!svc_handle1, "Expected failure for display name '%s'\n", display);
ok(GetLastError() == ERROR_DUPLICATE_SERVICE_NAME,
"Expected ERROR_DUPLICATE_SERVICE_NAME, got %d\n", GetLastError());
}
More information about the wine-cvs
mailing list