From 6b200481b386136c3c0a7c2d7f96a359b544aa5f Mon Sep 17 00:00:00 2001
From: Nikolaus Rath <Nikolaus@rath.org>
Date: Mon, 7 Mar 2016 13:22:36 -0800
Subject: Skip extended attribute tests under GNU/kFreeBSD

Origin: Debian
Forwarded: not-needed

Under GNU/kFreeBSD the setxattr and getxattr functions are dummies
that return ENOTIMPL.
---
 test/test_api.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/test_api.py b/test/test_api.py
index 81242..e2b37 100755
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -21,6 +21,7 @@ import tempfile
 import os
 import errno
 import pytest
+import sys
 
 def test_inquire_bits():
     assert 0 < llfuse.get_ino_t_bits() < 256
@@ -64,6 +65,9 @@ def test_entry_res():
     a.st_atime_ns = val*1e9
     assert a.st_atime_ns / 1e9 == val
 
+
+@pytest.mark.skipif(sys.platform.startswith('gnukfreebsd'),
+                    reason='GNU/kFreeBSD does not have xattr support')
 def test_xattr():
     with tempfile.NamedTemporaryFile() as fh:
         key = 'user.new_attribute'
