aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHereThereBeDragons <HereThereBeDragons@users.noreply.github.com>2023-01-06 14:05:00 +0100
committerNikolaus Rath <Nikolaus@rath.org>2023-01-06 18:35:52 +0000
commitc0a344e3797844896d04efc4b565a2627067b67f (patch)
treede8931c4436d00216000362ee164e6bbee957366 /test
parent91083df90eadc0e69e4ce6956f823a2acb602f25 (diff)
downloadlibfuse-c0a344e3797844896d04efc4b565a2627067b67f.tar.gz
Test for fuse_lowlevel_notify_expire_entry.
This test is too simple to check for all functionalities of notify_expire as it always successfully passes when libfuse supports the function (even if kernel does not support it - it just takes it as notify_inval)
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_examples.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index 97eebfc..cfce57c 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -331,8 +331,9 @@ def test_null(tmpdir, output_checker):
@pytest.mark.skipif(fuse_proto < (7,12),
reason='not supported by running kernel')
+@pytest.mark.parametrize("only_expire", ("invalidate_entries", "expire_entries"))
@pytest.mark.parametrize("notify", (True, False))
-def test_notify_inval_entry(tmpdir, notify, output_checker):
+def test_notify_inval_entry(tmpdir, only_expire, notify, output_checker):
mnt_dir = str(tmpdir)
cmdline = base_cmdline + \
[ pjoin(basename, 'example', 'notify_inval_entry'),
@@ -340,6 +341,8 @@ def test_notify_inval_entry(tmpdir, notify, output_checker):
'--timeout=5', mnt_dir ]
if not notify:
cmdline.append('--no-notify')
+ if only_expire == "expire_entries":
+ cmdline.append('--only-expire')
mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
stderr=output_checker.fd)
try: