aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ctests.py
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2022-03-14 09:48:43 +0000
committerGitHub <noreply@github.com>2022-03-14 09:48:43 +0000
commit2b7a6f065b6e30723d6cc8668cff198dbb62b914 (patch)
tree6420fbb2ddc1c8f04f6c4a05633401d3ceca68e1 /test/test_ctests.py
parent3c2ba7aa2500618b7b11255ef3f699d6615ad5a2 (diff)
parent66b04453b7a5d7aefa0a55e9101afe0347215128 (diff)
downloadlibfuse-2b7a6f065b6e30723d6cc8668cff198dbb62b914.tar.gz
Merge pull request #635 from amir73il/fopen_noflush
Add support for FOPEN_NOFLUSH flag
Diffstat (limited to 'test/test_ctests.py')
-rw-r--r--test/test_ctests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_ctests.py b/test/test_ctests.py
index 4290f20..63728c3 100644
--- a/test/test_ctests.py
+++ b/test/test_ctests.py
@@ -33,6 +33,11 @@ def test_write_cache(tmpdir, writeback, output_checker):
mnt_dir ]
if writeback:
cmdline.append('-owriteback_cache')
+ elif LooseVersion(platform.release()) >= '5.16':
+ # Test that close(rofd) does not block waiting for pending writes.
+ # This test requires kernel commit a390ccb316be ("fuse: add FOPEN_NOFLUSH")
+ # so opt-in for this test from kernel 5.16.
+ cmdline.append('--delay_ms=200')
subprocess.check_call(cmdline, stdout=output_checker.fd, stderr=output_checker.fd)