aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_examples.py2
-rw-r--r--test/test_write_cache.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index 958e633..96e4108 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -347,6 +347,8 @@ def test_notify_inval_entry(tmpdir, only_expire, notify, output_checker):
cmdline.append('--no-notify')
if only_expire == "expire_entries":
cmdline.append('--only-expire')
+ if fuse_proto < (7,38):
+ pytest.skip('only-expire not supported by running kernel')
mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
stderr=output_checker.fd)
try:
diff --git a/test/test_write_cache.c b/test/test_write_cache.c
index bc62ac1..e0bdeb9 100644
--- a/test/test_write_cache.c
+++ b/test/test_write_cache.c
@@ -19,6 +19,7 @@
#include <assert.h>
#include <stddef.h>
#include <unistd.h>
+#include <sys/stat.h>
#include <pthread.h>
#ifndef __linux__
@@ -37,7 +38,7 @@ struct options {
int delay_ms;
} options = {
.writeback = 0,
- .data_size = 4096,
+ .data_size = 2048,
.delay_ms = 0,
};