]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Link virtestmock with probes
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 18 May 2016 13:31:54 +0000 (15:31 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 20 May 2016 15:16:21 +0000 (17:16 +0200)
I've encountered this error while trying out this feature on some
systems:

  $ VIR_TEST_FILE_ACCESS=1 ./virhashtest \
 libvirt.git/tests/.libs/lt-virhashtest: \
symbol lookup error: libvirt.git/tests/.libs/virtestmock.so: \
undefined symbol: libvirt_event_poll_purge_timeout_semaphore

Problem is, linking just libvirt_utils to virmock.la is not
enough. We might need to link libvirt_probes.lo too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am

index 98b8bb9ddcc6814aed1976da4fd78c209903a416..0c4ad3cb964138212b4363f2b7355fb6e7dff293 100644 (file)
@@ -1178,6 +1178,7 @@ virtestmock_la_CFLAGS = $(AM_CFLAGS)
 virtestmock_la_LDFLAGS = $(MOCKLIBS_LDFLAGS)
 virtestmock_la_LIBADD = \
        $(MOCKLIBS_LIBS) \
+       $(PROBES_O) \
        ../src/libvirt_util.la
 else ! WITH_LINUX
        EXTRA_DIST += virusbtest.c virusbmock.c \