Commit 46400814 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

hid/tests: Do not fail when the device is busy.

Some devices do not allow shared access (mouse, sound device). Signed-off-by: 's avatarDetlef Riekenberg <wine.dev@web.de> Signed-off-by: 's avatarAric Stewart <aric@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f5f34fe0
......@@ -79,6 +79,12 @@ static void run_for_each_device(device_test *test)
trace("Not enough permissions to read device %s.\n", wine_dbgstr_w(data->DevicePath));
continue;
}
if (file == INVALID_HANDLE_VALUE && GetLastError() == ERROR_SHARING_VIOLATION)
{
trace("Device is busy: %s.\n", wine_dbgstr_w(data->DevicePath));
continue;
}
ok(file != INVALID_HANDLE_VALUE, "Failed to open %s, error %u.\n",
wine_dbgstr_w(data->DevicePath), GetLastError());
......
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