]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-aio.c
test-aio: fix GSource-based timer test
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 7 Jul 2014 13:18:03 +0000 (15:18 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 9 Jul 2014 13:50:11 +0000 (15:50 +0200)
commitef508f427b348c7f0ef2bfe7c080fe5fcaee9f6b
treed7c2ece80a335884f9556dd36e49fff852271f90
parent87f68d318222563822b5c6b28192215fc4b4e441
test-aio: fix GSource-based timer test

The current test depends too much on the implementation of the AioContext
GSource.  Just iterate on the main loop until the callback has been invoked
the right number of times.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/test-aio.c