diff options
author | Fabiano Rosas <farosas@suse.de> | 2024-12-09 17:44:22 -0300 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-01-02 16:00:50 -0300 |
commit | cd196679f413c7905143e5eb9b7d63b7a7eea158 (patch) | |
tree | b7bb97a726f92bafd00f504cfd7e790946bcfced | |
parent | 4ff969ce8e20586f1cc340c673e346a7d18e80d7 (diff) | |
download | qemu-cd196679f413c7905143e5eb9b7d63b7a7eea158.zip qemu-cd196679f413c7905143e5eb9b7d63b7a7eea158.tar.gz qemu-cd196679f413c7905143e5eb9b7d63b7a7eea158.tar.bz2 |
tests/qtest/migration: Do proper cleanup in the dirty_limit test
The dirty_limit test does two migrations in a row and is leaking the
first 'to' instance. Do proper cleanup.
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20241209204427.17763-2-farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
-rw-r--r-- | tests/qtest/migration/precopy-tests.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/qtest/migration/precopy-tests.c b/tests/qtest/migration/precopy-tests.c index b709d90..23599b2 100644 --- a/tests/qtest/migration/precopy-tests.c +++ b/tests/qtest/migration/precopy-tests.c @@ -877,6 +877,11 @@ static void test_dirty_limit(void) migrate_cancel(from); wait_for_migration_status(from, "cancelled", NULL); + /* destination always fails after cancel */ + migration_event_wait(to, "failed"); + qtest_set_expected_status(to, EXIT_FAILURE); + qtest_quit(to); + /* Check if dirty limit throttle switched off, set timeout 1ms */ do { throttle_us_per_full = |