[libvirt] [PATCH 2/7] Create a re-usable DBus LD_PRELOAD mock library

Eric Blake eblake at redhat.com
Thu Mar 13 22:58:36 UTC 2014


On 03/12/2014 07:21 AM, Daniel P. Berrange wrote:
> A number of test suites want to mock the DBus APIs. To avoid
> re-inventing the wheel create a re-usable virmockdbus.la
> library for LD_PRELOAD usage.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  tests/Makefile.am   | 11 +++++++--
>  tests/virmockdbus.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 73 insertions(+), 2 deletions(-)
>  create mode 100644 tests/virmockdbus.c
> 

> +++ b/tests/virmockdbus.c
> @@ -0,0 +1,64 @@
> +/*
> + * virmockdbus.c: mocking of dbus message send/reply
> + *
> + * Copyright (C) 2013 Red Hat, Inc.

It's 2014; you've been sitting on this work for a while :)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140313/0e6b2ef9/attachment-0001.sig>


More information about the libvir-list mailing list