]> xenbits.xensource.com Git - libvirt.git/commit
tests: don't try to mock __open_2 on non-GLibc builds
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Aug 2019 08:57:05 +0000 (09:57 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Aug 2019 09:12:07 +0000 (10:12 +0100)
commitc46ab0d48fd0c1eeaa781e6b099f144694b829d9
tree97e65d0522ee043ecd36ae89aa05106a0625def9
parent9c2446ed4a81450f6482f259f9a0cf720cb0e423
tests: don't try to mock __open_2 on non-GLibc builds

Mocking of the __open_2 function was added in

  commit 459f071cacf30af9df93b7d090b1bda71b0ef20f
  Author: Michal Privoznik <mprivozn@redhat.com>
  Date:   Thu Aug 15 16:37:17 2019 +0200

    virpcimock: Mock __open_2()

This function only exists in glibc, however, and the mocking code runs
on systems not using glibc, such as FreeBSD. Even Linux hosts might be
using a different libc impl, though we don't actively try to support
that.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/virpcimock.c