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>
return 0;
} else {
devalias = "monitor";
- fakesourcefd = 1764;
- virTestDummyFDContextMarkFD(fakesourcefd, g_strdup("@mon-fd@"));
+ fakesourcefd = virTestMakeDummyFD(g_strdup("@mon-fd@"));
}
switch ((virDomainChrType) chardev->type) {