Re: [PATCH 1/2] test: Refactor setting of dummy error handlers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/17/2013 07:40 AM, Peter Krempa wrote:
> Multiple tests need to register a function to quiesce errors from
> libvirt when using a connection and doing negative tests. Each of those
> tests had a static function to do so. This can be replaced by a utility
> function that enables the errors when debug is enabledd.

s/enabledd/enabled/

> 
> This patch adds virtTestQuiesceLibvirtErrors() and refactors test that
> use private handlers.
> ---
>  tests/esxutilstest.c | 12 +-----------
>  tests/reconnect.c    |  6 +-----
>  tests/sockettest.c   |  9 +--------
>  tests/statstest.c    |  9 +--------
>  tests/testutils.c    | 13 ++++++++++---
>  tests/testutils.h    |  2 ++
>  tests/utiltest.c     | 12 +-----------
>  7 files changed, 17 insertions(+), 46 deletions(-)

ACK.  The 1:3 +/- ratio is a sign of a good refactoring :)

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]