]> www.infradead.org Git - users/sagi/libnvme.git/commit
mi: be pedantic with response message format
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 29 Jun 2022 07:11:24 +0000 (15:11 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Fri, 1 Jul 2022 06:52:36 +0000 (14:52 +0800)
commitc13abc620ac7105592380766ba5b3f95b258de2d
tree7ae1cb286ce9f9256cda1e7b45e084b4e58c597d
parent275cb31e6042253bf077830799f703c96c6a64c6
mi: be pedantic with response message format

This change adds a few tests to check against invalid response data
received by the NVMe-MI device, and some tests to simulate these
conditions.

Because we're checking more of the response fields, we need a bit more
support for constructing default responses in the mi and mi-mctp tests,
so add that too.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
src/nvme/mi.c
test/mi-mctp.c
test/mi.c