]> xenbits.xensource.com Git - libvirt.git/commit
tests: utils: Allow NULL strings to be equal to empty file in virTestCompareToFile
authorPeter Krempa <pkrempa@redhat.com>
Fri, 28 Jul 2017 10:37:48 +0000 (12:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 28 Jul 2017 15:59:06 +0000 (17:59 +0200)
commit8b3a0b28ba2d62a90d15700540c30111f412d8a9
treed6ee411b497be81a7c8726fec120e8c33f3d248f
parent259a16d51400b39ff7a2217746874b206c54ed1a
tests: utils: Allow NULL strings to be equal to empty file in virTestCompareToFile

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