mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-23 12:14:15 +08:00
bb1890afd7
Added a secondary check in fuse_lib_unlink() after hide_node() to check again under a lock if the (now hidden) file is still open. If not then delete it. This should synchronise fuse_lib_unlink() with fuse_lib_release(), when nullpath_ok is set.
37 lines
1.5 KiB
Meson
37 lines
1.5 KiB
Meson
# Compile helper programs
|
|
td = []
|
|
foreach prog: [ 'test_write_cache', 'test_setattr' ]
|
|
td += executable(prog, prog + '.c',
|
|
include_directories: include_dirs,
|
|
link_with: [ libfuse ],
|
|
dependencies: thread_dep,
|
|
install: false)
|
|
endforeach
|
|
td += executable('test_syscalls', 'test_syscalls.c',
|
|
include_directories: include_dirs,
|
|
install: false)
|
|
td += executable('readdir_inode', 'readdir_inode.c',
|
|
include_directories: include_dirs,
|
|
install: false)
|
|
td += executable('release_unlink_race', 'release_unlink_race.c',
|
|
dependencies: [ libfuse_dep ],
|
|
install: false)
|
|
|
|
test_scripts = [ 'conftest.py', 'pytest.ini', 'test_examples.py',
|
|
'util.py', 'test_ctests.py', 'test_custom_io.py' ]
|
|
td += custom_target('test_scripts', input: test_scripts,
|
|
output: test_scripts, build_by_default: true,
|
|
command: ['cp', '-fPp',
|
|
'@INPUT@', meson.current_build_dir() ])
|
|
|
|
# Provide something helpful when running 'ninja test'
|
|
|
|
if meson.is_subproject()
|
|
test('libfuse is a subproject, skipping tests', executable('wrong_command',
|
|
'wrong_command.c', install: false,
|
|
c_args: [ '-DMESON_IS_SUBPROJECT' ]))
|
|
else
|
|
test('wrong_command', executable('wrong_command', 'wrong_command.c',
|
|
install: false))
|
|
endif
|