]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
tests: Fix systemd test with --without-driver-modules
authorJiri Denemark <jdenemar@redhat.com>
Thu, 10 Apr 2014 15:18:35 +0000 (17:18 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 10 Apr 2014 18:30:41 +0000 (20:30 +0200)
commit844a5c1eedd4cdb2d031aa7328256284fc8ef899
tree54293ce26b8188e8f96eacf7f43e01391ba8b188
parent5dfcd6fbc691d7423780c1d9876d2b7987bdddd6
tests: Fix systemd test with --without-driver-modules

Every test that makes use of virmock.h (only virsystemdtest as of now)
needs to be linked with -export-dynamic to make sure the LD_PRELOADed
mock library can access its wrap_* symbols. Normally,
DRIVER_MODULE_LDFLAGS variable contains -export-dynamic but when
--without-driver-modules configure option is used, DRIVER_MODULE_LDFLAGS
is empty.

This patch turns on -export-dynamic for all tests unconditionally
regardless on --without-driver-modules. This fixes virsystemdtest and
all future users of virmock.h.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/Makefile.am