Commit Diff


commit - 10d50d0a6245d0a7f7378a46c6f520a9db6931ef
commit + 096e2aca6c6baea1bfe8023712a9ed5cca3cdec4
blob - f2e57e025e1f1b451d11e622b0de242f65444ff5
blob + 7efc08c9e944bef4274c1c1e0269dbd1d75f3b7f
--- unreliablefs/tests/test_unreliablefs.py
+++ unreliablefs/tests/test_unreliablefs.py
@@ -26,6 +26,11 @@ from os.path import join as pjoin
 def is_no_xattr_support():
     return sys.platform.startswith("freebsd") or \
             sys.platform == "openbsd"
+
+def is_freebsd():
+    return sys.platform.startswith("freebsd")
+
+no_freebsd_support = is_freebsd()
 
 no_xattr_support = is_no_xattr_support()
 
@@ -249,6 +254,7 @@ def test_statvfs(setup_unreliablefs):
     mnt_dir, src_dir = setup_unreliablefs
     os.statvfs(mnt_dir)
 
+@pytest.mark.skipif(no_freebsd_support, reason="no freebsd support")
 def test_link(setup_unreliablefs):
     mnt_dir, src_dir = setup_unreliablefs
     name1 = pjoin(mnt_dir, name_generator())