aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-12-16 12:16:45 +0000
committerGitHub <noreply@github.com>2020-12-16 12:16:45 +0000
commit545a268510c270ec537134f8050fe7ec5a1f0f51 (patch)
tree30ba271b10a43dc8ebacfd6405bcd0c1f7531850 /test
parent0502943fb1ce6f24aff1f3086e55f7ceff86bd68 (diff)
downloadlibvfio-user-545a268510c270ec537134f8050fe7ec5a1f0f51.zip
libvfio-user-545a268510c270ec537134f8050fe7ec5a1f0f51.tar.gz
libvfio-user-545a268510c270ec537134f8050fe7ec5a1f0f51.tar.bz2
enable ERR and REQ IRQs by default (#209)
enable ERR and REQ IRQs by default Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'test')
-rw-r--r--test/unit-tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c
index 7de11ac..a983f3d 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -525,6 +525,8 @@ test_vfu_ctx_create(void **state __attribute__((unused)))
vfu_ctx = vfu_create_ctx(VFU_TRANS_SOCK, "", LIBVFIO_USER_FLAG_ATTACH_NB,
NULL, VFU_DEV_TYPE_PCI);
assert_non_null(vfu_ctx);
+ assert_int_equal(1, vfu_ctx->irq_count[VFU_DEV_ERR_IRQ]);
+ assert_int_equal(1, vfu_ctx->irq_count[VFU_DEV_REQ_IRQ]);
assert_int_equal(0,
vfu_pci_setup_config_hdr(vfu_ctx, id, ss, cc,
VFU_PCI_TYPE_CONVENTIONAL, 0));