Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
tests/virhostdevtest.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/virhostdevtest.c b/tests/virhostdevtest.c
index 089014e..de4cdde 100644
--- a/tests/virhostdevtest.c
+++ b/tests/virhostdevtest.c
@@ -65,6 +65,9 @@ myCleanup(void)
}
if (mgr) {
+ if (mgr->stateDir && !getenv("LIBVIRT_SKIP_CLEANUP"))
+ virFileDeleteTree(mgr->stateDir);
+
virObjectUnref(mgr->activePCIHostdevs);
virObjectUnref(mgr->inactivePCIHostdevs);
virObjectUnref(mgr->activeUSBHostdevs);
--
1.9.2