[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/8] tests/qtest/migration: Do proper cleanup in the dirty_limit t
From: |
Fabiano Rosas |
Subject: |
[PULL 2/8] tests/qtest/migration: Do proper cleanup in the dirty_limit test |
Date: |
Thu, 2 Jan 2025 19:06:23 -0300 |
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>
---
tests/qtest/migration/precopy-tests.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/qtest/migration/precopy-tests.c
b/tests/qtest/migration/precopy-tests.c
index b709d9051d..23599b29ee 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 =
--
2.35.3
- [PULL 0/8] QTest patches for 2025-01-02, Fabiano Rosas, 2025/01/02
- [PULL 1/8] tests/qtest/migration: Fix compile errors when CONFIG_UADK is set, Fabiano Rosas, 2025/01/02
- [PULL 3/8] tests/qtest/migration: Initialize buffer in probe_o_direct_support, Fabiano Rosas, 2025/01/02
- [PULL 2/8] tests/qtest/migration: Do proper cleanup in the dirty_limit test,
Fabiano Rosas <=
- [PULL 6/8] tests/migration: Drop arch_[source|target], Fabiano Rosas, 2025/01/02
- [PULL 5/8] tests/qtest/virtio-iommu-test: Don't pass uninitialized data into qtest_memwrite, Fabiano Rosas, 2025/01/02
- [PULL 7/8] tests/qtest/migration: Re-enable postcopy tests, Fabiano Rosas, 2025/01/02
- [PULL 8/8] qtest/fw-cfg: remove compiled out code, Fabiano Rosas, 2025/01/02
- [PULL 4/8] tests/qtest/bios-tables-test: Free tables at dump_aml_files, Fabiano Rosas, 2025/01/02
- Re: [PULL 0/8] QTest patches for 2025-01-02, Stefan Hajnoczi, 2025/01/03