diff options
| author | Peter Xu <peterx@redhat.com> | 2024-06-19 18:30:44 -0400 |
|---|---|---|
| committer | Fabiano Rosas <farosas@suse.de> | 2024-06-21 09:48:00 -0300 |
| commit | d444e5673c223241bd2edbc207b02cc1b2114b71 (patch) | |
| tree | 245b65483e278c2fafc3bb0b8bf7cf870560b92f /tests/qtest/migration-helpers.h | |
| parent | cd313b66f203381f2f2f984d5155d7942d26725d (diff) | |
| download | focaccia-qemu-d444e5673c223241bd2edbc207b02cc1b2114b71.tar.gz focaccia-qemu-d444e5673c223241bd2edbc207b02cc1b2114b71.zip | |
tests/migration-tests: migration_event_wait()
Introduce a small helper to wait for a migration event, generalized from the incoming migration path. Make the helper easier to use by allowing it to keep waiting until the expected event is received. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'tests/qtest/migration-helpers.h')
| -rw-r--r-- | tests/qtest/migration-helpers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qtest/migration-helpers.h b/tests/qtest/migration-helpers.h index 50095fca4a..72dba369fb 100644 --- a/tests/qtest/migration-helpers.h +++ b/tests/qtest/migration-helpers.h @@ -63,4 +63,6 @@ static inline bool probe_o_direct_support(const char *tmpfs) } #endif void migration_test_add(const char *path, void (*fn)(void)); +void migration_event_wait(QTestState *s, const char *target); + #endif /* MIGRATION_HELPERS_H */ |