From: Vibhav Pant vibhavp@gmail.com
Fixes spurious test failures on native systems with many device interfaces. --- dlls/windows.devices.enumeration/tests/devices.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/windows.devices.enumeration/tests/devices.c b/dlls/windows.devices.enumeration/tests/devices.c index 433f9c33f2b..a7a97004ce7 100644 --- a/dlls/windows.devices.enumeration/tests/devices.c +++ b/dlls/windows.devices.enumeration/tests/devices.c @@ -685,7 +685,8 @@ static void test_CreateWatcherAqsFilter_( IDeviceInformationStatics *statics, co if (FAILED( hr ) || FAILED( test_case->start_hr )) goto next;
ret = WaitForSingleObject( enumerated_data.event, 500 ); - todo_wine_if( todo_wait ) ok( !ret, "WaitForSingleObject returned %lu\n", ret ); + /* Enumeration may take a long time on native if there are many device interfaces. */ + todo_wine_if( todo_wait ) ok( !ret || broken( ret == WAIT_TIMEOUT ), "WaitForSingleObject returned %lu\n", ret );
hr = IDeviceWatcher_Stop( watcher ); ret = WaitForSingleObject( stopped_data.event, 500 );