On 01.09.2017 20:03, Eric Blake wrote: > Managing parallel connections to two different monitors via > the implicit global_qtest makes it hard to copy-and-paste code > to tests that are not aware of the implicit state. We are > already half-using the explicit APIs, so fix the remaining > spots to also be explicit about which connection is in use, > and avoid global_qtest. > > We can assert that the conversion is correct by checking that > global_qtest remains NULL throughout the test (a later patch > that changes global_qtest to not be a public global variable > will drop the assertions). > > Signed-off-by: Eric Blake <ebl...@redhat.com> > --- > tests/postcopy-test.c | 84 > ++++++++++++++++++++++++--------------------------- > 1 file changed, 40 insertions(+), 44 deletions(-)
Reviewed-by: Thomas Huth <th...@redhat.com>