Commit 19fb59eb authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput/tests: Reduce tests verbosity.

parent 4b09ed14
......@@ -4588,7 +4588,7 @@ static HRESULT WINAPI controller_handler_QueryInterface( IEventHandler_RawGameCo
return S_OK;
}
trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
if (winetest_debug > 1) trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
*out = NULL;
return E_NOINTERFACE;
}
......@@ -4608,7 +4608,7 @@ static HRESULT WINAPI controller_handler_Invoke( IEventHandler_RawGameController
{
struct controller_handler *impl = impl_from_IEventHandler_RawGameController( iface );
trace( "iface %p, sender %p, controller %p\n", iface, sender, controller );
if (winetest_debug > 1) trace( "iface %p, sender %p, controller %p\n", iface, sender, controller );
ok( sender == NULL, "got sender %p\n", sender );
impl->invoked = TRUE;
......@@ -4756,7 +4756,7 @@ static HRESULT WINAPI bool_async_handler_QueryInterface( IAsyncOperationComplete
return S_OK;
}
trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
if (winetest_debug > 1) trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
*out = NULL;
return E_NOINTERFACE;
}
......@@ -4776,7 +4776,7 @@ static HRESULT WINAPI bool_async_handler_Invoke( IAsyncOperationCompletedHandler
{
struct bool_async_handler *impl = impl_from_IAsyncOperationCompletedHandler_boolean( iface );
trace( "iface %p, async %p, status %u\n", iface, async, status );
if (winetest_debug > 1) trace( "iface %p, async %p, status %u\n", iface, async, status );
ok( !impl->invoked, "invoked twice\n" );
impl->invoked = TRUE;
......@@ -4841,7 +4841,7 @@ static HRESULT WINAPI result_async_handler_QueryInterface( IAsyncOperationComple
return S_OK;
}
trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
if (winetest_debug > 1) trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
*out = NULL;
return E_NOINTERFACE;
}
......@@ -4861,7 +4861,7 @@ static HRESULT WINAPI result_async_handler_Invoke( IAsyncOperationCompletedHandl
{
struct result_async_handler *impl = impl_from_IAsyncOperationCompletedHandler_ForceFeedbackLoadEffectResult( iface );
trace( "iface %p, async %p, status %u\n", iface, async, status );
if (winetest_debug > 1) trace( "iface %p, async %p, status %u\n", iface, async, status );
ok( !impl->invoked, "invoked twice\n" );
impl->invoked = TRUE;
......
......@@ -513,7 +513,7 @@ static HRESULT WINAPI controller_handler_QueryInterface( IEventHandler_RawGameCo
return S_OK;
}
trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
if (winetest_debug > 1) trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
*out = NULL;
return E_NOINTERFACE;
}
......@@ -533,7 +533,7 @@ static HRESULT WINAPI controller_handler_Invoke( IEventHandler_RawGameController
{
struct controller_handler *impl = impl_from_IEventHandler_RawGameController( iface );
trace( "iface %p, sender %p, controller %p\n", iface, sender, controller );
if (winetest_debug > 1) trace( "iface %p, sender %p, controller %p\n", iface, sender, controller );
ok( sender == NULL, "got sender %p\n", sender );
impl->invoked = TRUE;
......@@ -720,7 +720,7 @@ static HRESULT WINAPI input_sink_OnInputResumed( IGameControllerInputSink *iface
{
struct custom_controller *impl = impl_from_IGameControllerInputSink( iface );
trace( "iface %p, timestamp %I64u\n", iface, timestamp );
if (winetest_debug > 1) trace( "iface %p, timestamp %I64u\n", iface, timestamp );
ok( !controller_added.invoked, "controller added handler invoked\n" );
ok( !impl->on_input_resumed_called, "OnInputResumed already called\n" );
......@@ -733,7 +733,7 @@ static HRESULT WINAPI input_sink_OnInputSuspended( IGameControllerInputSink *ifa
{
struct custom_controller *impl = impl_from_IGameControllerInputSink( iface );
trace( "iface %p, timestamp %I64u\n", iface, timestamp );
if (winetest_debug > 1) trace( "iface %p, timestamp %I64u\n", iface, timestamp );
ok( !controller_removed.invoked, "controller removed handler invoked\n" );
ok( !impl->on_input_suspended_called, "OnInputSuspended already called\n" );
......@@ -851,7 +851,7 @@ static HRESULT WINAPI custom_factory_CreateGameController( ICustomGameController
{
struct custom_factory *impl = impl_from_ICustomGameControllerFactory( iface );
trace( "iface %p, provider %p, value %p\n", iface, provider, value );
if (winetest_debug > 1) trace( "iface %p, provider %p, value %p\n", iface, provider, value );
ok( !controller_added.invoked, "controller added handler invoked\n" );
ok( !impl->create_controller_called, "unexpected call\n" );
......@@ -875,7 +875,7 @@ static HRESULT WINAPI custom_factory_OnGameControllerAdded( ICustomGameControlle
{
struct custom_factory *impl = impl_from_ICustomGameControllerFactory( iface );
trace( "iface %p, value %p\n", iface, value );
if (winetest_debug > 1) trace( "iface %p, value %p\n", iface, value );
ok( controller_added.invoked, "controller added handler not invoked\n" );
ok( impl->create_controller_called, "CreateGameController not called\n" );
......@@ -894,7 +894,7 @@ static HRESULT WINAPI custom_factory_OnGameControllerRemoved( ICustomGameControl
{
struct custom_factory *impl = impl_from_ICustomGameControllerFactory( iface );
trace( "iface %p, value %p\n", iface, value );
if (winetest_debug > 1) trace( "iface %p, value %p\n", iface, value );
ok( controller_removed.invoked, "controller removed handler invoked\n" );
ok( custom_controller.on_input_suspended_called, "OnInputSuspended not called\n" );
......
......@@ -3770,7 +3770,7 @@ static HRESULT WINAPI controller_handler_QueryInterface( IEventHandler_RawGameCo
return S_OK;
}
trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
if (winetest_debug > 1) trace( "%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid( iid ) );
*out = NULL;
return E_NOINTERFACE;
}
......@@ -3790,7 +3790,7 @@ static HRESULT WINAPI controller_handler_Invoke( IEventHandler_RawGameController
{
struct controller_handler *impl = impl_from_IEventHandler_RawGameController( iface );
trace( "iface %p, sender %p, controller %p\n", iface, sender, controller );
if (winetest_debug > 1) trace( "iface %p, sender %p, controller %p\n", iface, sender, controller );
ok( sender == NULL, "got sender %p\n", sender );
impl->invoked = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment