Ján Tomko 31413101a8 tests: mock qemuInterfaceOpenVhostNet
This functions contains logic that tries to use vhost for virtio
interfaces, even if <driver name='vhost'/> was not supplied.
In this case, a failure is non-fatal.

On my system, /dev/vhost-net was not accessible to the user running
'make check', but we should not depend on that.

Mock it to prevent accessing /dev/vhost-net and return some predictable
file descriptor numbers instead.

Introduced by commit c1f684e - deprecate QEMU_CAPS_VHOST_NET.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reported-by: Jiří Denemark <jdenemar@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2018-04-17 14:02:09 +02:00
..
2017-11-20 13:22:48 +01:00
2018-01-11 14:23:09 +01:00
2017-11-20 13:22:48 +01:00
2017-04-27 14:13:19 +02:00
2017-04-11 13:23:01 +02:00
2016-12-06 13:34:00 +01:00
2017-11-03 13:24:12 +01:00
2018-04-10 15:16:44 +02:00
2018-04-10 15:16:23 +02:00
2018-04-17 14:02:09 +02:00
2018-03-12 20:04:08 +04:00
2017-11-03 13:24:12 +01:00
2017-11-22 11:27:40 +01:00
2017-07-26 15:33:45 +02:00
2017-04-27 14:13:19 +02:00
2017-11-24 11:47:26 -05:00
2017-11-03 13:24:12 +01:00
2018-01-25 17:16:08 +01:00
2016-09-14 13:18:07 +02:00
2016-08-24 17:43:29 +02:00
2017-10-05 09:09:50 +02:00
2018-04-01 12:43:42 +02:00