Commit Graph

11 Commits

Author SHA1 Message Date
Matthias Goergens
eb88309882 Migrate away from deprecated distutils
Before:

```
=============================== warnings summary ===============================
test/test_ctests.py:12
  /tmp/libfuse-build-mB50ZC/build-gcc-9/test/test_ctests.py:12: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import LooseVersion

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
```
2023-04-11 13:32:00 +01:00
Amir Goldstein
435a14e029 Add test for FOPEN_NOFLUSH flag
Simulate write() delay and verify that close(rofd) does not
block waiting on pending writes.

The support for the flag was added in kernel v5.16-rc1.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
2022-01-05 08:43:43 +02:00
Nikolaus Rath
bb52fccb59 Invoke cleanup() with right arguments.
This currently causes hangs if the test fails, cf issue #459.
2019-11-20 11:38:33 +00:00
Nikolaus Rath
1343f59c27 Fix output checking in test cases
py.test's capture plugin does not work reliably when used by
other fixtures. Therefore, implement our own version.
2019-07-04 21:20:41 +01:00
Nikolaus Rath
68f177d238 Kill filesystem process on test cleanup. 2018-11-24 20:51:34 +00:00
Nikolaus Rath
48d0e99af3 Fix writeback capability check. 2017-08-25 09:49:23 +02:00
Nikolaus Rath
937467b6a0 Use printcap() to control test execution
That way, we run only tests that are supported by the running kernel.
2017-08-24 17:19:07 +02:00
Nikolaus Rath
fc83143867 Renamed notify_inval_inode_fh to invalidate_path
The previous name didn't make much sense.
2017-08-24 14:51:27 +02:00
Sławek Rudnicki
89f2bae00c Allow inode cache invalidation in high-level API
We re-introduce the functionality of invalidating the caches for an
inode specified by path by adding a new routine
fuse_invalidate_path. This is useful for network-based file systems
which use the high-level API, enabling them to notify the kernel about
external changes.

This is a revival of Miklos Szeredi's original code for the
fuse_invalidate routine.
2017-08-24 14:20:37 +02:00
Nikolaus Rath
07636c619d Skip tests that aren't supported under FreeBSD. 2017-08-11 21:13:40 +02:00
Nikolaus Rath
952492ff43 Factored out C-based tests 2017-05-25 13:23:56 -07:00