[libvirt PATCH] tests: Fix fd leaks in virpcivpdtest

Michal Prívozník mprivozn at redhat.com
Thu Feb 10 15:23:37 UTC 2022


On 2/10/22 15:32, Jiri Denemark wrote:
> Tests testVirPCIVPDReadVPDBytes and testVirPCIVPDParseFullVPDInvalid
> failed to properly close open fildescriptors in some cases. Let's fix it
> by switching to VIR_AUTOCLOSE in the whole file.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  tests/virpcivpdtest.c | 23 ++++++++---------------
>  1 file changed, 8 insertions(+), 15 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal




More information about the libvir-list mailing list