]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virportallocatortest: Run on linux only
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Feb 2016 12:48:02 +0000 (13:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Feb 2016 15:13:31 +0000 (16:13 +0100)
commit26946f674e95d09f52617d4f17b2dec9272c4299
tree70bb4d7b04767c04866982fe479365b7be576eea
parent9c14a9ab42f7fc159864dcbe07055800dce52867
virportallocatortest: Run on linux only

After the rework of mocking of our tests there's the
virportallocator test failing to link on mingw. Well, it's the
mocking library actually:

../gnulib/lib/.libs/libgnu.a(bind.o): In function `rpl_bind':
/home/jenkins/libvirt-mingw/build32/gnulib/lib/../../../gnulib/lib/bind.c:33: multiple definition of `rpl_bind'
.libs/virportallocatormock_la-virportallocatormock.o:/home/jenkins/libvirt-mingw/build32/tests/../../tests/virportallocatormock.c:79: first defined here

I've no idea why this matters to mingw and does not to others.
Nevertheless, if we make the test linux only the problem goes
away.

Apparently, our test for RTLD_NEXT is not sufficient because
mingw32 defines it. Lets put aside for a while fact that it has
the same value as RTLD_DEFAULT which by description has different
meaning, shall we?

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/virportallocatormock.c
tests/virportallocatortest.c