Re: [libvirt] [PATCH 1/7] Introduce a new set of helper macros for mocking symbols

2014-03-13 Thread Eric Blake
On 03/12/2014 07:21 AM, Daniel P. Berrange wrote: Introduce virmock.h which provides some macros to assist in creation of LD_PRELOAD overrides. When these are used, the LD_PRELOAD code simply has some stubs which forward to a wrapper function inside the main test case. This means that logic

[libvirt] [PATCH 1/7] Introduce a new set of helper macros for mocking symbols

2014-03-12 Thread Daniel P. Berrange
Introduce virmock.h which provides some macros to assist in creation of LD_PRELOAD overrides. When these are used, the LD_PRELOAD code simply has some stubs which forward to a wrapper function inside the main test case. This means that logic for the test no longer has to be split between the