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. Now that > libqos is fully-explicit, it is easy to expand the rest of > vhost-user-test to also use explicit state everywhere. > > 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/vhost-user-test.c | 68 > ++++++++++++++++++++++--------------------------- > 1 file changed, 30 insertions(+), 38 deletions(-)
Reviewed-by: Thomas Huth <th...@redhat.com>