]> git.proxmox.com Git - mirror_qemu.git/commit
test-aio: Fix event notifier cleanup
authorKevin Wolf <kwolf@redhat.com>
Mon, 23 Nov 2015 12:30:23 +0000 (13:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 25 Nov 2015 13:27:43 +0000 (14:27 +0100)
commit7595ed743914b9de1d146213dedc1e007283f723
tree0f32688943ecbaca044c0b94f175f93f93d528d5
parent5e41fbffa115608fe6f7159d345d6caa0019e687
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>
tests/test-aio.c