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:
Tormod Volden
2023-12-13 01:28:19 +01:00
parent 5f9abfbe27
commit 7c3d9ec61c
2 changed files with 5 additions and 2 deletions

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11853
#define LIBUSB_NANO 11854

View File

@@ -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);