2019-02-19 09:07:25 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2018-2019 GitHub, Inc.
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see http://www.gnu.org/licenses/ .
|
|
|
|
|
|
|
|
test_description='projfs file operation locking tests
|
|
|
|
|
|
|
|
Check that projfs file operation notification events are issued serially for a
|
|
|
|
given path.
|
|
|
|
'
|
|
|
|
|
|
|
|
. ./test-lib.sh
|
|
|
|
|
2019-03-02 01:21:38 +03:00
|
|
|
projfs_start test_handlers source target --timeout 1 --lock-file lock || exit 1
|
2019-02-19 09:07:25 +03:00
|
|
|
|
|
|
|
test_expect_success 'test concurrent access does not trigger failure' '
|
|
|
|
projfs_run_twice ls target
|
|
|
|
'
|
|
|
|
|
|
|
|
projfs_stop || exit 1
|
|
|
|
|
2019-05-30 23:17:17 +03:00
|
|
|
test_expect_success 'check no unexpected error output' '
|
2019-03-02 01:21:38 +03:00
|
|
|
test_must_be_empty test_handlers.err
|
2019-02-19 09:07:25 +03:00
|
|
|
'
|
|
|
|
|
|
|
|
test_done
|
|
|
|
|