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(a)redhat.com>
---
tests/virpcivpdtest.c | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Michal