Rémi Bernon : dinput8/tests: Reduce pnp_driver_start todo_wine verbosity.

Alexandre Julliard julliard at winehq.org
Wed Oct 6 15:51:38 CDT 2021


Module: wine
Branch: master
Commit: 3864c98f1e0b0733bece31d2fc3e105b4b8817a1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3864c98f1e0b0733bece31d2fc3e105b4b8817a1

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Oct  6 10:21:52 2021 +0200

dinput8/tests: Reduce pnp_driver_start todo_wine verbosity.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51784
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dinput8/tests/hid.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/dinput8/tests/hid.c b/dlls/dinput8/tests/hid.c
index 466331b326b..71159fb66be 100644
--- a/dlls/dinput8/tests/hid.c
+++ b/dlls/dinput8/tests/hid.c
@@ -499,11 +499,15 @@ static BOOL pnp_driver_start( const WCHAR *resource )
     WCHAR path[MAX_PATH], filename[MAX_PATH];
     SC_HANDLE manager, service;
     const CERT_CONTEXT *cert;
+    int old_mute_threshold;
     BOOL ret, need_reboot;
     HANDLE catalog;
     HDEVINFO set;
     FILE *f;
 
+    old_mute_threshold = winetest_mute_threshold;
+    winetest_mute_threshold = 1;
+
     load_resource( resource, filename );
     ret = MoveFileExW( filename, L"winetest.sys", MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING );
     ok( ret, "failed to move file, error %u\n", GetLastError() );
@@ -536,6 +540,7 @@ static BOOL pnp_driver_start( const WCHAR *resource )
         ok( ret, "Failed to delete file, error %u\n", GetLastError() );
         ret = DeleteFileW( L"winetest.sys" );
         ok( ret, "Failed to delete file, error %u\n", GetLastError() );
+        winetest_mute_threshold = old_mute_threshold;
         return FALSE;
     }
 
@@ -584,6 +589,8 @@ static BOOL pnp_driver_start( const WCHAR *resource )
 
     CloseServiceHandle( service );
     CloseServiceHandle( manager );
+
+    winetest_mute_threshold = old_mute_threshold;
     return ret || GetLastError() == ERROR_SERVICE_ALREADY_RUNNING;
 }
 




More information about the wine-cvs mailing list