mirror of
https://github.com/qemu/qemu.git
synced 2025-01-20 04:23:28 +08:00
test-aio: Fix event notifier cleanup
One test case closed an event notifier (event_notifier_cleanup()) without first disabling it (set_event_notifier(..., NULL)). This resulted in a leftover handle 0 that was added to each subsequent WaitForMultipleObjects() call, causing the function to fail (invalid handle). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
5e41fbffa1
commit
7595ed7439
@ -393,6 +393,7 @@ static void test_aio_external_client(void)
|
||||
aio_enable_external(ctx);
|
||||
}
|
||||
assert(aio_poll(ctx, false));
|
||||
set_event_notifier(ctx, &data.e, NULL);
|
||||
event_notifier_cleanup(&data.e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user