Skip testing null and ioctl examples under FreeBSD.
authorNikolaus Rath <Nikolaus@rath.org>
Thu, 24 Aug 2017 19:50:30 +0000 (21:50 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Thu, 24 Aug 2017 19:56:00 +0000 (21:56 +0200)
This seems to be unsupported. However, me may also be
doing it wrong. I've asked on the freebsd-fs list for help.

test/test_examples.py

index 64849925662964144a25a1737f4834a6ef07092f..948f994b55693e8cd5b9c4931348356ad07f4557 100755 (executable)
@@ -167,6 +167,11 @@ def test_passthrough(tmpdir, name, debug, capfd):
     else:
         umount(mount_process, mnt_dir)
 
+# Is this really not supported? We should check with
+# the FreeBSD guys, maybe we're just doing something
+# wrong.
+@pytest.mark.skipif('freebsd' in sys.platform,
+                    reason='not supported in FreeBSD')
 def test_ioctl(tmpdir):
     mnt_dir = str(tmpdir)
     testfile = pjoin(mnt_dir, 'fioc')
@@ -208,6 +213,11 @@ def test_poll(tmpdir):
     else:
         umount(mount_process, mnt_dir)
 
+# Is this really not supported? We should check with
+# the FreeBSD guys, maybe we're just doing something
+# wrong.
+@pytest.mark.skipif('freebsd' in sys.platform,
+                    reason='not supported in FreeBSD')
 def test_null(tmpdir):
     mnt_file = str(tmpdir) + '/file'
     with open(mnt_file, 'w') as fh: