mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-09 19:53:03 +00:00
trivial: Fix the DFU self tests when the ColorHug+ is connected
This commit is contained in:
parent
9e59fa4d16
commit
ff3efe77b4
@ -550,6 +550,7 @@ dfu_device_func (void)
|
|||||||
g_autoptr(DfuDevice) device = NULL;
|
g_autoptr(DfuDevice) device = NULL;
|
||||||
g_autoptr(DfuTarget) target1 = NULL;
|
g_autoptr(DfuTarget) target1 = NULL;
|
||||||
g_autoptr(DfuTarget) target2 = NULL;
|
g_autoptr(DfuTarget) target2 = NULL;
|
||||||
|
g_autoptr(FuQuirks) quirks = fu_quirks_new ();
|
||||||
g_autoptr(GError) error = NULL;
|
g_autoptr(GError) error = NULL;
|
||||||
g_autoptr(GUsbContext) usb_ctx = NULL;
|
g_autoptr(GUsbContext) usb_ctx = NULL;
|
||||||
g_autoptr(GUsbDevice) usb_device = NULL;
|
g_autoptr(GUsbDevice) usb_device = NULL;
|
||||||
@ -570,6 +571,7 @@ dfu_device_func (void)
|
|||||||
|
|
||||||
/* check it's DFU-capable */
|
/* check it's DFU-capable */
|
||||||
device = dfu_device_new ();
|
device = dfu_device_new ();
|
||||||
|
dfu_device_set_system_quirks (device, quirks);
|
||||||
ret = dfu_device_set_new_usb_dev (device, usb_device, NULL, &error);
|
ret = dfu_device_set_new_usb_dev (device, usb_device, NULL, &error);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
g_assert (ret);
|
g_assert (ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user