OSDN Git Service

test: Add some tests for range and resv-mem helpers
authorEric Auger <eric.auger@redhat.com>
Thu, 19 Oct 2023 13:45:18 +0000 (15:45 +0200)
committerCédric Le Goater <clg@redhat.com>
Fri, 3 Nov 2023 08:20:31 +0000 (09:20 +0100)
commit71177490a87c08e7ac53ab00bad06d68f439a4cd
tree9fbf62f85e9cbe7605cc80d81696574c76f57752
parent5c476ba3fad3b7659988f28aae8b1b8d5331effc
test: Add some tests for range and resv-mem helpers

Add unit tests for both resv_region_list_insert() and
range_inverse_array().

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: "Michael S. Tsirkin" <mst@redhat.com>
[ clg: Removal of unused variable in compare_ranges() ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
tests/unit/meson.build
tests/unit/test-resv-mem.c [new file with mode: 0644]