aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ctests.py
diff options
context:
space:
mode:
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)