]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
testutilsqemu: Use real FD for monitor FDs instantiated by 'testQemuPrepareHostBacken...
authorPeter Krempa <pkrempa@redhat.com>
Mon, 18 May 2026 10:37:24 +0000 (12:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 May 2026 11:28:58 +0000 (13:28 +0200)
Switch to 'virTestMakeDummyFD' which uses a real FD. No otuputs are
changed thanks to the code which censors 'fd' field of --add-fd.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/testutilsqemu.c

index 7c0c975261d9baf3f06fc19475f94b6c5959df93..e8cd1b16b1e4c76165731c0f9993ea9ade83f814 100644 (file)
@@ -1037,8 +1037,7 @@ testQemuPrepareHostBackendChardevOne(virDomainDeviceDef *dev,
             return 0;
     } else {
         devalias = "monitor";
-        fakesourcefd = 1764;
-        virTestDummyFDContextMarkFD(fakesourcefd, g_strdup("@mon-fd@"));
+        fakesourcefd = virTestMakeDummyFD(g_strdup("@mon-fd@"));
     }
 
     switch ((virDomainChrType) chardev->type) {