diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2023-06-01 17:13:42 +0100 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2023-06-02 11:46:19 +0200 |
| commit | cdf5ab55872438bb3996d2b2a439c3a7b7425aa3 (patch) | |
| tree | a7e91cbbd830b7a449d12b6ca21de3a7a435ae56 /tests/qtest/migration-helpers.h | |
| parent | 11936f0ef6b29b1e7ba05ad888dd585210d74fd6 (diff) | |
| download | focaccia-qemu-cdf5ab55872438bb3996d2b2a439c3a7b7425aa3.tar.gz focaccia-qemu-cdf5ab55872438bb3996d2b2a439c3a7b7425aa3.zip | |
tests/qtest: switch to using event callbacks for STOP event
Change the migration test to use the new qtest event callback to watch for the stop event. This ensures that we only watch for the STOP event on the source QEMU. The previous code would set the single 'got_stop' flag when either source or dest QEMU got the STOP event. Reviewed-by: Juan Quintela <quintela@redhat.com> Acked-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230601161347.1803440-6-berrange@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'tests/qtest/migration-helpers.h')
| -rw-r--r-- | tests/qtest/migration-helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qtest/migration-helpers.h b/tests/qtest/migration-helpers.h index 2e51a6e195..fa69d1780a 100644 --- a/tests/qtest/migration-helpers.h +++ b/tests/qtest/migration-helpers.h @@ -15,7 +15,8 @@ #include "libqtest.h" -extern bool got_stop; +bool migrate_watch_for_stop(QTestState *who, const char *name, + QDict *event, void *opaque); #ifndef _WIN32 G_GNUC_PRINTF(3, 4) |