[Bug 291774] libusb_open reports all libusb20_dev_open errors as LIBUSB_ERROR_NO_MEM

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 20 Dec 2025 10:27:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291774

unitrunker <unitrunker@unitrunker.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #266394|0                           |1
        is obsolete|                            |

--- Comment #8 from unitrunker <unitrunker@unitrunker.net> ---
Created attachment 266395
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266395&action=edit
Kyua unit tests suitable for CI/CD

Kyua unit tests suitable for CI/CD

This test program uses the atf library to define twenty one unit tests. The
libusb20 backend is mocked-up (by overriding libusb20_be_alloc_default) to
inject whatever return code is needed from backend method open_device. Covers
libusb20_dev_open, libusb20_open and libusb_open_with_vid_pid.

Copy the executable, kyua.conf and Kyuafile into the same directory and run
'kyua test'.

-- 
You are receiving this mail because:
You are the assignee for the bug.