]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-coroutine.c
test-coroutine: add simple CoMutex test
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 3 Feb 2018 15:39:31 +0000 (10:39 -0500)
committerFam Zheng <famz@redhat.com>
Thu, 8 Feb 2018 01:21:34 +0000 (09:21 +0800)
commit439b6e5efcd79effc5199cba533fe4b28d75e0f6
treefd7f3588d15f8d9c614f846372d6386a49c83029
parent5b9b49d7bd3e0da13e8f6d58578443a11817f56e
test-coroutine: add simple CoMutex test

In preparation for adding a similar test using QemuLockable, add a very
simple testcase that has two interleaved calls to lock and unlock.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20180203153935.8056-2-pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
tests/test-coroutine.c