diff options
author | John Levon <john.levon@nutanix.com> | 2021-06-09 20:49:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 20:49:44 +0100 |
commit | 970d9b3e2edc656ef8e9a68b6d83cdb891c58455 (patch) | |
tree | 3ac7d2e748fd451cd765abf3acbcd0dfb41cde59 /test/py | |
parent | 9d96d7e81099fd0dbb7ff7dc6ff5535a4457a055 (diff) | |
download | libvfio-user-970d9b3e2edc656ef8e9a68b6d83cdb891c58455.zip libvfio-user-970d9b3e2edc656ef8e9a68b6d83cdb891c58455.tar.gz libvfio-user-970d9b3e2edc656ef8e9a68b6d83cdb891c58455.tar.bz2 |
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 <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/test_device_set_irqs.py | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |