diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2021-02-14 05:18:20 +0200 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2021-02-14 05:18:20 +0200 |
commit | 455eb7cae9db3dcf928ba364c0382cda8aba31ed (patch) | |
tree | 1118e2f0a33c6fe782f33b37ad0283d12b2c7dc4 | |
parent | ea8a7e229c6b1e0c6a382021971e9fda8f215a1d (diff) | |
download | bindfs-455eb7cae9db3dcf928ba364c0382cda8aba31ed.tar.gz |
Run test "preserves readdir inode numbers" unless fuse3 < 3.10.2
-rwxr-xr-x | tests/test_bindfs.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index 29210b7..9eef27d 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -33,6 +33,10 @@ $have_fuse_3 = Proc.new do system("pkg-config --exists fuse3") $?.success? end.call +$have_fuse_3_readdir_bug = $have_fuse_3 && Proc.new do + system("pkg-config --max-version=3.10.1 fuse3") + $?.success? +end.call $have_fuse_29 = !$have_fuse_3 && Proc.new do v = `pkg-config --modversion fuse`.split('.') @@ -466,7 +470,7 @@ testenv("", :title => "preserves inode numbers") do assert { File.stat('mnt/dir').ino == File.stat('src/dir').ino } end -unless $have_fuse_3 # TODO: re-enable after working around https://github.com/libfuse/libfuse/issues/583 +unless $have_fuse_3_readdir_bug # https://github.com/libfuse/libfuse/issues/583 testenv("", :title => "preserves readdir inode numbers") do touch('src/file') mkdir('src/dir') |