tests/qtest/migration: Add a fd + file test
authorFabiano Rosas <farosas@suse.de>
Tue, 20 Feb 2024 22:41:07 +0000 (19:41 -0300)
committerPeter Xu <peterx@redhat.com>
Wed, 28 Feb 2024 03:31:28 +0000 (11:31 +0800)
commit6d79bd6818b17bcfc8245f6f8df482ecb03d8e3e
treeb8d47acc860c55b2fce50a8a32d20e6179322d37
parent85cf9abd865841878c8d6df91b055aea06795fca
tests/qtest/migration: Add a fd + file test

The fd URI supports an fd that is backed by a file. The code should
select between QIOChannelFile and QIOChannelSocket, depending on the
type of the fd. Add a test for that.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240220224138.24759-4-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
tests/qtest/migration-test.c