coroutine: add test-aio coroutine queue chaining test case
commit35111583aa03c1a918a3f68858ef86eb161c7c06
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 22 Mar 2018 15:28:34 +0000 (22 15:28 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 27 Mar 2018 12:05:28 +0000 (27 13:05 +0100)
tree39d92737add7e8a3cfd27cee2b34adc740107567
parentc40a2545700e9ad2ef67d5972484bbee4c83b2a6
coroutine: add test-aio coroutine queue chaining test case

Check that two coroutines can queue each other repeatedly without
hitting stack exhaustion.

Switch to qemu_init_main_loop() in main() because coroutines use
qemu_get_aio_context() - they don't know about test-aio's ctx variable.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20180322152834.12656-4-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/test-aio.c