mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Add lib- prefix to all mocks
In preparation libtool "-module" flag removal, add lib prefix to all mock shared objects. While at it, introduce VIR_TEST_MOCK macros that makes path out of mock name to be used with VIR_TEST_PRELOAD or VIR_TEST_MAIN_PRELOAD. That, hopefully, improves readability, reduces line length and allows to tailor VIR_TEST_MOCK for specific platform if it has shared library suffix different from ".so". Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
This commit is contained in:
committed by
Daniel P. Berrangé
parent
351492e304
commit
fde361083d
@@ -1198,7 +1198,7 @@ mymain(void)
|
||||
}
|
||||
|
||||
# if WITH_DBUS
|
||||
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virdbusmock.so")
|
||||
VIR_TEST_MAIN_PRELOAD(mymain, VIR_TEST_MOCK("virdbus"))
|
||||
# else
|
||||
VIR_TEST_MAIN(mymain)
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user