]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Do not ignore mode parameter in mocked open()
authorLuyao Huang <lhuang@redhat.com>
Mon, 25 Sep 2017 18:27:07 +0000 (20:27 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 4 Oct 2017 09:57:42 +0000 (11:57 +0200)
commit3e581d150a28f5c8f577216220d19011c3bb7fbc
tree93cf8bf598f9abe45cabe4f43c883816e1f647d1
parent65a983eca1f44eaf2a209ae232f72aa659184945
tests: Do not ignore mode parameter in mocked open()

This is normally not an issue since the tests which use mocked open() do
not create files. But once coverage build is enabled, gcov_open will use
O_CREATE and real_open will read random data rather than the actual mode
argument.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/virfilewrapper.c
tests/virusbmock.c