mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
tests/stress_mt: Ignore device descriptor mismatch for Windows HID
Some device descriptor fields are hard-coded by the HID backend, so they will often not match. It is complicated to narrow this down to HID devices, so we simply ignore these fields on Windows wholesale. Hopefully we will fix the HID backend later, and this workaround can then be reverted. References #1360 References #1378 Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11853
|
||||
#define LIBUSB_NANO 11854
|
||||
|
||||
@@ -176,14 +176,17 @@ static thread_return_t THREAD_CALL_TYPE init_and_exit(void * arg)
|
||||
}
|
||||
ASSERT_EQ(bLength);
|
||||
ASSERT_EQ(bDescriptorType);
|
||||
#if !defined(PLATFORM_WINDOWS)
|
||||
/* these are hardcoded by the winusbx HID backend */
|
||||
ASSERT_EQ(bcdUSB);
|
||||
ASSERT_EQ(bDeviceClass);
|
||||
ASSERT_EQ(bDeviceSubClass);
|
||||
ASSERT_EQ(bDeviceProtocol);
|
||||
ASSERT_EQ(bMaxPacketSize0);
|
||||
ASSERT_EQ(bcdDevice);
|
||||
#endif
|
||||
ASSERT_EQ(idVendor);
|
||||
ASSERT_EQ(idProduct);
|
||||
ASSERT_EQ(bcdDevice);
|
||||
ASSERT_EQ(iManufacturer);
|
||||
ASSERT_EQ(iProduct);
|
||||
ASSERT_EQ(iSerialNumber);
|
||||
|
||||
Reference in New Issue
Block a user