]> git.proxmox.com Git - mirror_qemu.git/commit
tests/migration: Fail on unexpected migration states
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 23 Sep 2019 13:10:21 +0000 (14:10 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 25 Sep 2019 14:51:19 +0000 (15:51 +0100)
commite15310ea0732ea46d9ef66d6ca5def02c7dfa531
tree2c0309b853ac26aa3aac2464ca8277999575012e
parentd46a4847ca868aaf537df2b87ce07dcbcad6a224
tests/migration: Fail on unexpected migration states

We've got various places where we wait for a migration to enter
a given state; but if we enter an unexpected state we tend to fail
in odd ways; add a mechanism for explicitly testing for any state
which we shouldn't be in.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190923131022.15498-2-dgilbert@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tests/migration-test.c