mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-27 06:04:27 +08:00
example/ioctl: build on FreeBSD, but add protocol check instead.
This commit is contained in:
parent
f66673663a
commit
21b55a05a1
@ -1,15 +1,15 @@
|
||||
examples = [ 'passthrough', 'passthrough_fh',
|
||||
'hello', 'hello_ll', 'printcap',
|
||||
'ioctl_client', 'poll_client',
|
||||
'ioctl_client', 'poll_client', 'ioctl',
|
||||
'cuse', 'cuse_client' ]
|
||||
|
||||
if not platform.endswith('bsd')
|
||||
examples += 'passthrough_ll'
|
||||
|
||||
# Is this really not supported? We should check with
|
||||
# the FreeBSD guys, maybe we're just doing something
|
||||
# wrong.
|
||||
examples += [ 'null', 'ioctl' ]
|
||||
# According to Conrad Meyer <cem@freebsd.org>, FreeBSD doesn't
|
||||
# support mounting files, This is enforced in vfs_domount_first()
|
||||
# with the v_type != VDIR check.
|
||||
examples += [ 'null' ]
|
||||
endif
|
||||
|
||||
threaded_examples = [ 'notify_inval_inode',
|
||||
|
@ -166,6 +166,8 @@ def test_passthrough(tmpdir, name, debug, capfd):
|
||||
else:
|
||||
umount(mount_process, mnt_dir)
|
||||
|
||||
@pytest.mark.skipif(fuse_proto < (7,11),
|
||||
reason='not supported by running kernel')
|
||||
def test_ioctl(tmpdir):
|
||||
progname = pjoin(basename, 'example', 'ioctl')
|
||||
if not os.path.exists(progname):
|
||||
|
Loading…
Reference in New Issue
Block a user