[libvirt] [PATCH v2 1/2] tests: utils: Allow NULL strings to be equal to empty file in virTestCompareToFile

Eric Blake eblake at redhat.com
Fri Jul 28 20:04:49 UTC 2017


On 07/28/2017 05:43 AM, Peter Krempa wrote:
> Treat an NULL string equivalent to an empty string in
> virTestCompareToFile so that callers don't need to add additional logic
> in case when a test produces no output.
> ---
>  tests/testutils.c | 5 +++++
>  1 file changed, 5 insertions(+)

Works for me!


-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170728/c3aba505/attachment-0001.sig>


More information about the libvir-list mailing list