diff options
Diffstat (limited to 'test/py/test_irq_trigger.py')
-rw-r--r-- | test/py/test_irq_trigger.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/py/test_irq_trigger.py b/test/py/test_irq_trigger.py index 422eb3e..02bc90a 100644 --- a/test/py/test_irq_trigger.py +++ b/test/py/test_irq_trigger.py @@ -72,11 +72,7 @@ def test_irq_trigger(): fd = eventfd(initval=4) - hdr = vfio_user_header(VFIO_USER_DEVICE_SET_IRQS, size=len(payload)) - sock.sendmsg([hdr + payload], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, - struct.pack("I", fd))]) - vfu_run_ctx(ctx) - get_reply(sock) + msg(ctx, sock, VFIO_USER_DEVICE_SET_IRQS, payload, fds=[fd]) ret = vfu_irq_trigger(ctx, 8) |