]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/test-util-filemonitor.c
iotests/264: add backup-cancel test-case
[mirror_qemu.git] / tests / test-util-filemonitor.c
index 8f0eff3d03ea3f1e137ec443c2a00baa26904236..b629e10857255aea33dc07bfb0ef927baaff731e 100644 (file)
@@ -23,6 +23,8 @@
 #include "qapi/error.h"
 #include "qemu/filemonitor.h"
 
+#include <glib/gstdio.h>
+
 #include <utime.h>
 
 enum {
@@ -617,7 +619,7 @@ test_file_monitor_events(void)
             if (debug) {
                 g_printerr("Mkdir %s\n", pathsrc);
             }
-            if (mkdir(pathsrc, 0700) < 0) {
+            if (g_mkdir_with_parents(pathsrc, 0700) < 0) {
                 g_printerr("Unable to mkdir %s: %s",
                            pathsrc, strerror(errno));
                 goto cleanup;