From 970d9b3e2edc656ef8e9a68b6d83cdb891c58455 Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 9 Jun 2021 20:49:44 +0100 Subject: test_device_set_irqs: fix bool test (#561) We were accidentally hitting the wrong error condition for one of these tests, and hence not properly covering the intended failure path. Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- test/py/test_device_set_irqs.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/py/test_device_set_irqs.py b/test/py/test_device_set_irqs.py index 9e54381..ebc3768 100644 --- a/test/py/test_device_set_irqs.py +++ b/test/py/test_device_set_irqs.py @@ -188,6 +188,8 @@ def test_device_set_irqs_bad_fds_for_DATA_BOOL(): VFIO_IRQ_SET_DATA_BOOL, index=VFU_DEV_MSIX_IRQ, start=0, count=1) + payload = bytes(payload) + struct.pack("?", False) + fd = eventfd() hdr = vfio_user_header(VFIO_USER_DEVICE_SET_IRQS, size=len(payload)) -- cgit v1.1