]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroupmock: Mock access("/sys/devices/system/cpu/present")
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Feb 2016 07:44:46 +0000 (08:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Feb 2016 10:14:29 +0000 (11:14 +0100)
commit50129dcc9cb1caa312606c86b62431c643b8f39b
tree44a36955b96610499a97e5428c84557c99815db2
parentc92547c34a85331f34df7d2fe1c55eb40fea3f71
vircgroupmock: Mock access("/sys/devices/system/cpu/present")

There's been a report on the upstream list [1] describing we
access /sys/devices/system/cpu/present directly on the host from
within our test suite. This may end up in unpredictable results
as no all linux systems are required to have that file. Mock
access to the file.

libvirt.git/tests $ ../run strace vircgrouptest
...
access("/sys/devices/system/cpu/present", F_OK) = 0
...

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