Re: [Qemu-devel] [PULL 07/12] qapi: Simplify error cleanup in test-qmp-*

2015-11-09 Thread Markus Armbruster
Eric Blake writes: > On 11/09/2015 10:46 AM, Markus Armbruster wrote: >> From: Eric Blake >> >> We have several tests that perform multiple sub-actions that are >> expected to fail. Asserting that an error occurred, then clearing >> it up to prepare for the next action, turned into enough >> b

Re: [Qemu-devel] [PULL 07/12] qapi: Simplify error cleanup in test-qmp-*

2015-11-09 Thread Eric Blake
On 11/09/2015 10:46 AM, Markus Armbruster wrote: > From: Eric Blake > > We have several tests that perform multiple sub-actions that are > expected to fail. Asserting that an error occurred, then clearing > it up to prepare for the next action, turned into enough > boilerplate that it was someti

[Qemu-devel] [PULL 07/12] qapi: Simplify error cleanup in test-qmp-*

2015-11-09 Thread Markus Armbruster
From: Eric Blake We have several tests that perform multiple sub-actions that are expected to fail. Asserting that an error occurred, then clearing it up to prepare for the next action, turned into enough boilerplate that it was sometimes forgotten (for example, a number of tests added to test-q