summaryrefslogtreecommitdiff
path: root/tests/vboxsnapshotxmltest.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2021-02-26 09:37:10 +0100
committerMichal Privoznik <mprivozn@redhat.com>2021-03-04 20:52:23 +0100
commit7f482a67e481765b9290f036aa0d14896266ad2e (patch)
treeb09d3dfe92ed8013d69a583b9e90dc6fc6364dd8 /tests/vboxsnapshotxmltest.c
parentb1e3728dec074057b64d6d8b6a7f8d4332046407 (diff)
downloadlibvirt-7f482a67e481765b9290f036aa0d14896266ad2e.tar.gz
lib: Replace virFileMakePath() with g_mkdir_with_parents()
Generated using the following spatch: @@ expression path; @@ - virFileMakePath(path) + g_mkdir_with_parents(path, 0777) However, 14 occurrences were not replaced, e.g. in virHostdevManagerNew(). I don't really understand why. Fixed by hand afterwards. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'tests/vboxsnapshotxmltest.c')
-rw-r--r--tests/vboxsnapshotxmltest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vboxsnapshotxmltest.c b/tests/vboxsnapshotxmltest.c
index 9298bcb837..e44ca7fc98 100644
--- a/tests/vboxsnapshotxmltest.c
+++ b/tests/vboxsnapshotxmltest.c
@@ -54,7 +54,7 @@ testCompareXMLtoXMLFiles(const char *xml)
pathResult = g_strdup(abs_builddir "/vboxsnapshotxmldata/testResult.vbox");
- if (virFileMakePath(abs_builddir "/vboxsnapshotxmldata") < 0)
+ if (g_mkdir_with_parents(abs_builddir "/vboxsnapshotxmldata", 0777) < 0)
goto cleanup;
if (virTestLoadFile(xml, &xmlData) < 0)