Changes from [v1]:
* move function to a separate mock library;
* load mock library for all tests that use virHostdevManager.
[v1]
https://www.redhat.com/archives/libvir-list/2020-May/msg00020.html
Andrea Bolognani (1):
tests: Introduce virhostdevmock
tests/Makefile.am | 7 +++++++
tests/qemuhotplugtest.c | 1 +
tests/virhostdevmock.c | 29 +++++++++++++++++++++++++++++
tests/virhostdevtest.c | 4 +++-
4 files changed, 40 insertions(+), 1 deletion(-)
create mode 100644 tests/virhostdevmock.c
--
2.25.4