]> git.ipfire.org Git - thirdparty/qemu.git/commit
qtest: introduce qtest_init_ext
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Thu, 10 Apr 2025 16:22:50 +0000 (19:22 +0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 9 May 2025 19:14:30 +0000 (16:14 -0300)
commit246069e850327b3d5c7f460461fc0bbf0f817654
treefa32f82a5da3a16d338cd2d570d7eeea740af79e
parent4b1f5b73e060971c434e70694d571adfee553027
qtest: introduce qtest_init_ext

Merge qtest_init_with_env_and_capabilities() and qtest_init_with_env()
into one qtest_init_ext().

Reasons:

1. qtest_init_with_env() is just wrong: it gets do_connect parameter
   but always pass true to qtest_init_with_env_and_capabilities().
   Happily, all qtest_init_with_env() callers pass true as well.

2. qtest_init_with_env() is not used outside of libqtest.c, so no
   reason to keep it as public function

3. and in libqtest.c it's used not often, so no problem to use
   more generic function instead.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250410162250.329941-1-vsementsov@yandex-team.ru>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/libqtest.c
tests/qtest/libqtest.h
tests/qtest/migration/framework.c