Skip to content

Commit cd19667

Browse files
author
Fabiano Rosas
committed
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Fabiano Rosas <[email protected]>
1 parent 4ff969c commit cd19667

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/qtest/migration/precopy-tests.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,11 @@ static void test_dirty_limit(void)
877877
migrate_cancel(from);
878878
wait_for_migration_status(from, "cancelled", NULL);
879879

880+
/* destination always fails after cancel */
881+
migration_event_wait(to, "failed");
882+
qtest_set_expected_status(to, EXIT_FAILURE);
883+
qtest_quit(to);
884+
880885
/* Check if dirty limit throttle switched off, set timeout 1ms */
881886
do {
882887
throttle_us_per_full =

0 commit comments

Comments
 (0)