Skip to content

test: add tests for miscellaneous ioctl functions#1036

Merged
igaw merged 3 commits intolinux-nvme:masterfrom
MaisenbacherD:add-misc-tests
Jul 11, 2025
Merged

test: add tests for miscellaneous ioctl functions#1036
igaw merged 3 commits intolinux-nvme:masterfrom
MaisenbacherD:add-misc-tests

Conversation

@MaisenbacherD
Copy link
Copy Markdown
Contributor

Use the mock ioctl infrastructure to test the functions in ioctl.h that issue miscellaneous ioctl commands.

Also fix nvme_directive_recv_stream_status.

Take the nr_entries parameter for the returned data structure length
into account.

Signed-off-by: Dennis Maisenbacher <[email protected]>
Moving _cleanup_free_ to util.h such that it can be reused in all ioctl
test classes.

Signed-off-by: Dennis Maisenbacher <[email protected]>
Use the mock ioctl infrastructure to test the functions in ioctl.h that
issue miscellaneous ioctl commands.

Signed-off-by: Dennis Maisenbacher <[email protected]>
@igaw igaw merged commit e7bf9eb into linux-nvme:master Jul 11, 2025
12 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Jul 11, 2025

Nice! Thanks!

@MaisenbacherD MaisenbacherD deleted the add-misc-tests branch July 28, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants