From c0a344e3797844896d04efc4b565a2627067b67f Mon Sep 17 00:00:00 2001 From: HereThereBeDragons Date: Fri, 6 Jan 2023 14:05:00 +0100 Subject: 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) --- test/test_examples.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_examples.py') 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: -- cgit v1.2.3